summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-10-02 13:32:55 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-10-02 13:32:55 +0200
commitb6912aeac771ef294377b8af071d28f6acfa7050 (patch)
tree7c93c9124d89ef748213b421cd582dace7d7442a /lib
parent075f000f1c8f0899f80f94e63a11071fcc506c55 (diff)
downloadrpg-b6912aeac771ef294377b8af071d28f6acfa7050.tar.gz
rpg-b6912aeac771ef294377b8af071d28f6acfa7050.tar.bz2
minor edit checkbox
This patch adds a minor edit checkbox to the edit form for logged in users. Minor edits are displayed different in recent changes and the page revision history. The RSS feed excludes minor edits by default - this can be changed by adding a minor darcs-hash:20051002113255-7ad00-2bc9e1aaa76d9616428e760529ecc14ef119cf71.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/tpl/default/design.css10
-rw-r--r--lib/tpl/default/mediaedit.php10
2 files changed, 13 insertions, 7 deletions
diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css
index d080c88e3..83547b9b4 100644
--- a/lib/tpl/default/design.css
+++ b/lib/tpl/default/design.css
@@ -55,18 +55,19 @@ form {
display: inline;
}
-label {
+label.block {
display: block;
text-align: right;
font-weight: bold;
}
label.simple {
+ display: block;
text-align: left;
font-weight: normal;
}
-label input.edit {
+label.block input.edit {
width: 50%;
}
@@ -280,6 +281,11 @@ span.user{
font-size: 90%;
}
+li.minor {
+ color: #666;
+ font-style: italic;
+}
+
/* embedded images */
img.media {
margin: 3px;
diff --git a/lib/tpl/default/mediaedit.php b/lib/tpl/default/mediaedit.php
index 53a969e1b..c7b7e2e53 100644
--- a/lib/tpl/default/mediaedit.php
+++ b/lib/tpl/default/mediaedit.php
@@ -40,11 +40,11 @@
<input type="hidden" name="edit" value="<?php echo hsc($IMG)?>" />
<input type="hidden" name="save" value="1" />
- <label for="title"><?php echo $lang['img_title']?></label>
+ <label class="block" for="title"><?php echo $lang['img_title']?></label>
<input type="text" name="meta[Iptc.Headline]" id="title" class="edit"
value="<?php echo hsc(tpl_img_getTag('IPTC.Headline'))?>" /><br />
- <label for="caption"><?php echo $lang['img_caption']?></label>
+ <label class="block" for="caption"><?php echo $lang['img_caption']?></label>
<textarea name="meta[Iptc.Caption]" id="caption" class="edit" rows="5"><?php
echo hsc(tpl_img_getTag(array('IPTC.Caption',
'EXIF.UserComment',
@@ -52,19 +52,19 @@
'EXIF.TIFFUserComment')));
?></textarea><br />
- <label for="artist"><?php echo $lang['img_artist']?></label>
+ <label class="block" for="artist"><?php echo $lang['img_artist']?></label>
<input type="text" name="meta[Iptc.Byline]" id="artist" class="edit"
value="<?php echo hsc(tpl_img_getTag(array('Iptc.Byline',
'Exif.TIFFArtist',
'Exif.Artist',
'Iptc.Credit')))?>" /><br />
- <label for="copy"><?php echo $lang['img_copyr']?></label>
+ <label class="block" for="copy"><?php echo $lang['img_copyr']?></label>
<input type="text" name="meta[Iptc.CopyrightNotice]" id="copy" class="edit"
value="<?php echo hsc(tpl_img_getTag(array('Iptc.CopyrightNotice','Exif.TIFFCopyright','Exif.Copyright')))?>" /><br />
- <label for="keywords"><?php echo $lang['img_keywords']?></label>
+ <label class="block" for="keywords"><?php echo $lang['img_keywords']?></label>
<textarea name="meta[Iptc.Keywords]" id="keywords" class="edit"><?php
echo hsc(tpl_img_getTag(array('IPTC.Keywords',
'EXIF.Category')));