Changeset 952 in svn for trunk/admin/edit.tpl.php


Ignore:
Timestamp:
2012-07-03T06:46:00Z (3 years ago)
Author:
Xuefer
Message:

disable submit button like textarea when enable_eval not enabled. adds note about it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/edit.tpl.php

    r605 r952  
    88        <legend><?php echo sprintf(_T("Editing Variable %s"), $h_name); ?></legend>
    99        <textarea name="value" style="width: 100%; height: 200px; overflow-y: auto" <?php echo $editable ? "" : "disabled=disabled"; ?>><?php echo $h_value; ?></textarea><br>
    10         <input type="submit">
     10        <input type="submit" <?php echo $editable ? "" : "disabled=disabled"; ?>>
     11        <?php
     12        if (!$editable) {
     13            echo sprintf(_T("Set %s in config to enable"), "\$config['enable_eval'] = true");
     14        }
     15        ?>
    1116    </fieldset>
    1217</form>
Note: See TracChangeset for help on using the changeset viewer.