Skip to content

Commit

Permalink
CSS 'required': project documentation pages
Browse files Browse the repository at this point in the history
Remove hardcoded '*' with span, use CSS 'required' class on label
instead.
  • Loading branch information
dregad committed Jan 1, 2016
1 parent 28fee5e commit d078ce3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions css/default.css
Expand Up @@ -532,6 +532,7 @@ div.form-container fieldset legend {
font-weight: bold;
}
div.form-container fieldset label.required:before,
th label.required:before,
td label.required:before {
font-size: 8pt;
content: '* ';
Expand Down
4 changes: 2 additions & 2 deletions proj_doc_add_page.php
Expand Up @@ -70,7 +70,7 @@
</tr>
<tr class="row-1">
<th class="category" width="25%">
<span class="required">*</span><?php echo lang_get( 'title' ) ?>
<label class="required"><span><?php echo lang_get( 'title' ) ?></span></label>
</th>
<td width="75%">
<input type="text" name="title" size="70" maxlength="250" />
Expand All @@ -86,7 +86,7 @@
</tr>
<tr class="row-1">
<td class="category">
<span class="required">*</span><?php echo lang_get( 'select_file' ); ?>
<label class="required"><span><?php echo lang_get( 'select_file' ) ?></span></label>
<br />
<?php print_max_filesize( $t_max_file_size ); ?>
</td>
Expand Down
2 changes: 1 addition & 1 deletion proj_doc_edit_page.php
Expand Up @@ -91,7 +91,7 @@
</tr>
<tr class="row-1">
<th class="category" width="20%">
<span class="required">*</span><?php echo lang_get( 'title' ) ?>
<label class="required"><span><?php echo lang_get( 'title' ) ?></span></label>
</th>
<td width="80%">
<input type="text" name="title" size="70" maxlength="250" value="<?php echo $v_title ?>" />
Expand Down

0 comments on commit d078ce3

Please sign in to comment.