diff options
author | Christian Hofmaier | 2018-03-20 10:26:44 +0100 |
---|---|---|
committer | Christian Hofmaier | 2018-03-20 10:26:44 +0100 |
commit | b1b0de62a9c6e1ffa65bedb5b68c1d911a8569a9 (patch) | |
tree | 207b604bf09a5825f08b72394b7d19c8f588cbc1 | |
parent | [usb-lock-off] corrected some of the language (diff) | |
download | slx-admin-b1b0de62a9c6e1ffa65bedb5b68c1d911a8569a9.tar.gz slx-admin-b1b0de62a9c6e1ffa65bedb5b68c1d911a8569a9.tar.xz slx-admin-b1b0de62a9c6e1ffa65bedb5b68c1d911a8569a9.zip |
[usb-lock-off] config names can now be as long as they want to + fixed table widths for nicer looks
3 files changed, 21 insertions, 5 deletions
diff --git a/modules-available/usblockoff/style.css b/modules-available/usblockoff/style.css new file mode 100644 index 00000000..f2dbce70 --- /dev/null +++ b/modules-available/usblockoff/style.css @@ -0,0 +1,16 @@ +#configurationTable { + table-layout: fixed; + width: 100%; +} + +#configurationTable th, #configurationTable td { + word-wrap: break-word +} + +.width40 { + width: 40%; +} + +.width10 { + width: 10%; +}
\ No newline at end of file diff --git a/modules-available/usblockoff/templates/usb-configuration-table.html b/modules-available/usblockoff/templates/usb-configuration-table.html index 3ceebce5..48ba3184 100644 --- a/modules-available/usblockoff/templates/usb-configuration-table.html +++ b/modules-available/usblockoff/templates/usb-configuration-table.html @@ -65,10 +65,10 @@ <table id="configurationTable" class="table table-condensed table-hover stupidtable"> <thead> <tr> - <th data-sort="string">{{lang_serverName}}</th> - <th>{{lang_ruleInfoTODO}}</th> - <th>{{lang_edit}}</th> - <th>{{lang_delete}}</th> + <th class="width40" data-sort="string">{{lang_serverName}}</th> + <th class="width40">{{lang_ruleInfoTODO}}</th> + <th class="width10">{{lang_edit}}</th> + <th class="width10">{{lang_delete}}</th> </tr> </thead> <tbody> diff --git a/modules-available/usblockoff/templates/usb-edit-config.html b/modules-available/usblockoff/templates/usb-edit-config.html index 694101d4..51166138 100644 --- a/modules-available/usblockoff/templates/usb-edit-config.html +++ b/modules-available/usblockoff/templates/usb-edit-config.html @@ -14,7 +14,7 @@ <label for="configName">{{lang_configName}}</label> </div> <div class="col-sm-7"> - <input required class="form-control" name="configName" id="configName" maxlength="50" value="{{configName}}"> + <input required class="form-control" name="configName" id="configName" value="{{configName}}"> </div> <div class="col-sm-2"> <a class="btn btn-default" title="{{lang_configName_helptext}}"> |