diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2011-01-03 04:13:27 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2011-01-03 04:13:27 +0000 |
| commit | e4f3190f09dcbacb663046ff0fecacb69c01b1d9 (patch) | |
| tree | aeef89a3e4f045b16f5a77d3411258ba203ddb0a | |
| parent | 9fa9eec1e549e99cba24f6d72fbb975d5897d993 (diff) | |
| download | webtrees-e4f3190f09dcbacb663046ff0fecacb69c01b1d9.tar.gz webtrees-e4f3190f09dcbacb663046ff0fecacb69c01b1d9.tar.bz2 webtrees-e4f3190f09dcbacb663046ff0fecacb69c01b1d9.zip | |
More admin design changes
| -rw-r--r-- | modules/faq/module.php | 47 | ||||
| -rw-r--r-- | themes/_administration/style.css | 4 |
2 files changed, 27 insertions, 24 deletions
diff --git a/modules/faq/module.php b/modules/faq/module.php index 8b1568994d..55b7571f0e 100644 --- a/modules/faq/module.php +++ b/modules/faq/module.php @@ -154,18 +154,18 @@ class faq_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_Conf $gedcom_id=WT_GED_ID; } + // "Help for this page" link + echo '<div id="page_help">', help_link('add_faq_item', $this->getName()), '</div>'; echo '<form name="faq" method="post" action="#">'; echo '<input type="hidden" name="save" value="1" />'; echo '<input type="hidden" name="block_id" value="', $block_id, '" />'; - echo '<table class="center list_table">'; - echo '<tr><td class="topbottombar" colspan="2">'; - echo WT_I18N::translate('Frequently asked questions'), help_link('add_faq_item', $this->getName()); - echo '</td></tr><tr><td class="descriptionbox" colspan="2">'; + echo '<table id="faq_module">'; + echo '<tr><th>'; echo WT_I18N::translate('Question'); - echo '</td></tr><tr><td class="optionbox" colspan="2"><input type="text" name="header" size="90" tabindex="1" value="'.htmlspecialchars($header).'"/></td></tr>'; - echo '<tr><td class="descriptionbox" colspan="2">'; + echo '</th></tr><tr><td><input type="text" name="header" size="90" tabindex="1" value="'.htmlspecialchars($header).'"/></td></tr>'; + echo '<tr><th>'; echo WT_I18N::translate('Answer'); - echo '</td></tr><tr><td class="optionbox" colspan="2">'; + echo '</th></tr><tr><td>'; if (array_key_exists('ckeditor', WT_Module::getActiveModules())) { // use CKeditor module require_once WT_ROOT.'modules/ckeditor/ckeditor.php'; @@ -181,28 +181,27 @@ class faq_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_Conf echo '<textarea name="faqbody" rows="10" cols="90" tabindex="2">', htmlspecialchars($faqbody), '</textarea>'; } echo '</td></tr>'; - echo '<tr><td class="descriptionbox">'; - echo WT_I18N::translate('FAQ position'), help_link('add_faq_order', $this->getName()); - echo '</td><td class="descriptionbox">'; - echo WT_I18N::translate('FAQ visibility'), help_link('add_faq_visibility', $this->getName()); - echo '</td></tr><tr><td class="optionbox"><input type="text" name="block_order" size="3" tabindex="3" value="', $block_order, '" /></td>'; - echo '<td class="optionbox">'; + echo '</table><table id="faq_module2">'; + echo '<tr>'; + echo '<th>', WT_I18N::translate('Show this block for which languages?'), '</th>'; + echo '<th>', WT_I18N::translate('FAQ position'), help_link('add_faq_order', $this->getName()), '</th>'; + echo '<th>', WT_I18N::translate('FAQ visibility'), help_link('add_faq_visibility', $this->getName()), '</th>'; + echo '</tr><tr>'; + echo '<td>'; + $languages=get_block_setting($block_id, 'languages'); + echo edit_language_checkboxes('lang_', $languages); + echo '</td><td>'; + echo '<input type="text" name="block_order" size="3" tabindex="3" value="', $block_order, '" /></td>'; + echo '</td><td>'; echo '<select name="gedcom_id" tabindex="4" />'; echo '<option value="">', WT_I18N::translate('All'), '</option>'; echo '<option value="', WT_GED_ID, '" selected="selected">', htmlspecialchars(WT_GEDCOM), '</option'; echo '</select>'; echo '</td></tr>'; - - $languages=get_block_setting($block_id, 'languages'); - echo '<tr><td class="descriptionbox wrap width33">'; - echo WT_I18N::translate('Show this block for which languages?'); - echo '</td><td class="optionbox ', $TEXT_DIRECTION, '">'; - echo edit_language_checkboxes('lang_', $languages); - echo '</td></tr>'; - - echo '<tr><td class="topbottombar" colspan="2"><input type="submit" value="', WT_I18N::translate('Save'), '" tabindex="5"/>'; - echo ' <input type="button" value="', WT_I18N::translate('Cancel'), '" onclick="window.location=\''.$this->getConfigLink().'\';" tabindex="6" /></td></tr>'; echo '</table>'; + + echo '<p><input type="submit" value="', WT_I18N::translate('Save'), '" tabindex="5"/>'; + echo ' <input type="button" value="', WT_I18N::translate('Cancel'), '" onclick="window.location=\''.$this->getConfigLink().'\';" tabindex="6" /></p>'; echo '</form>'; print_footer(); @@ -390,7 +389,7 @@ class faq_WT_Module extends WT_Module implements WT_Module_Block, WT_Module_Conf foreach ($faqs as $faq) { echo '<tr>'; // NOTE: Print the position of the current item - echo '<td class="descriptionbox width20 $TEXT_DIRECTION" colspan="4">'; + echo '<td class="descriptionbox width20 $TEXT_DIRECTION">'; echo WT_I18N::translate('Position item'), ': ', $faq->block_order, ', '; if ($faq->gedcom_id==null) { echo WT_I18N::translate('All'); diff --git a/themes/_administration/style.css b/themes/_administration/style.css index fa5dd4dc41..9557cadb3e 100644 --- a/themes/_administration/style.css +++ b/themes/_administration/style.css @@ -239,3 +239,7 @@ table#batch_update2 {background:OldLace; border:1px inset #D9D6C4; border-collap #batch_update2 td+td {text-align:left; border:2px inset LightGrey;} #batch_update2 pre {margin:0; padding:5px;} +/* FAQ MODULE */ +table#faq_module, table#faq_module2 {background:OldLace; border:1px inset #D9D6C4; border-collapse: separate; border-spacing: 0; margin:0 0 10px 0; padding:5px; width:918px;} +#faq_module th {font-size:105%; font-weight:bold; text-align: left; vertical-align:top;} +#faq_module2 th, #faq_module2 td {vertical-align:top; text-align:left;} |
