mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-07 01:57:59 +03:00
* Restyled custom tags * Restyled user inputs
This commit is contained in:
parent
2b112fd02a
commit
5f8e429693
@ -28,7 +28,7 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<a type="button" class="change_to_vector_attribute button small small-12 secondary radius">
|
||||
<a type="button" style="border-radius: 20px; background-color:#2E9CB9" class="change_to_vector_attribute button small small-12 secondary radius">
|
||||
<i class="fa fa-plus"></i>
|
||||
</a>
|
||||
</td>
|
||||
@ -36,7 +36,7 @@
|
||||
</tfoot>
|
||||
</table>
|
||||
</td>
|
||||
<td style="display: flex; justify-content: flex-start">
|
||||
<td style="width: 150%; display: flex; justify-content: flex-end">
|
||||
<a href="#"><i class="fa fa-times-circle remove-tab"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<a type="button" class="add_vector_attribute button small small-12 secondary radius">
|
||||
<a type="button" style="border-radius: 20px; background-color:#2E9CB9" class="add_vector_attribute button small small-12 secondary radius">
|
||||
<i class="fa fa-plus"></i>
|
||||
</a>
|
||||
</td>
|
||||
@ -32,7 +32,7 @@
|
||||
</tfoot>
|
||||
</table>
|
||||
</td>
|
||||
<td style="display: flex; justify-content: flex-start">
|
||||
<td style="width: 150%; display: flex; justify-content: flex-end">
|
||||
<a href="#"><i class="fa fa-times-circle remove-tab"></i></a>
|
||||
</td>
|
||||
</tr>
|
@ -60,7 +60,7 @@ define(function(require) {
|
||||
$("select.user_input_type", context).change();
|
||||
});
|
||||
|
||||
$('tbody').sortable();
|
||||
$('tbody', context).sortable();
|
||||
|
||||
context.on("change", "select.user_input_type", function() {
|
||||
var row = $(this).closest("tr");
|
||||
@ -651,13 +651,13 @@ define(function(require) {
|
||||
break;
|
||||
case "boolean":
|
||||
if(value == "YES"){
|
||||
input = '<br>' + Locale.tr("YES ") + '<input checked type="radio" name="bool_' + attr.name + '" value="YES"' + wizard_field + ' ' + required + '/>';
|
||||
input = '<br>' + Locale.tr("YES ") + '<input style="margin-right: 20px" checked type="radio" name="bool_' + attr.name + '" value="YES"' + wizard_field + ' ' + required + '/>';
|
||||
input += Locale.tr("NO ") + '<input type="radio" name="bool_' + attr.name + '" value="NO"' + wizard_field + ' ' + required + '/>';
|
||||
} else if(value == "NO"){
|
||||
input = '<br>' + Locale.tr("YES ") + '<input type="radio" name="bool_' + attr.name + '" value="YES"' + wizard_field + ' ' + required + '/>';
|
||||
input = '<br>' + Locale.tr("YES ") + '<input style="margin-right: 20px" type="radio" name="bool_' + attr.name + '" value="YES"' + wizard_field + ' ' + required + '/>';
|
||||
input += Locale.tr("NO ") + '<input checked type="radio" name="bool_' + attr.name + '" value="NO"' + wizard_field + ' ' + required + '/>'
|
||||
} else {
|
||||
input = '<br>' + Locale.tr("YES ") + '<input type="radio" name="bool_' + attr.name + '" value="YES"' + wizard_field + ' ' + required + '/>';
|
||||
input = '<br>' + Locale.tr("YES ") + '<input style="margin-right: 20px" type="radio" name="bool_' + attr.name + '" value="YES"' + wizard_field + ' ' + required + '/>';
|
||||
input += Locale.tr("NO ") + '<input type="radio" name="bool_' + attr.name + '" value="NO"' + wizard_field + ' ' + required + '/>';
|
||||
}
|
||||
break;
|
||||
|
@ -20,7 +20,7 @@
|
||||
</select>
|
||||
</label>
|
||||
</td>
|
||||
<td>
|
||||
<td style="padding-left: 20px">
|
||||
<label>{{tr "Description"}}
|
||||
<textarea class="user_input_description"/>
|
||||
</label>
|
||||
@ -36,8 +36,8 @@
|
||||
</div>
|
||||
<div class="user_input_type_right boolean">
|
||||
<label>{{tr "Default value"}}</label>
|
||||
<input type="radio" step="any" name="bool_{{idInput}}" class="user_input_initial" id="radio_yes" value="YES"> {{tr "YES"}}
|
||||
<input type="radio" step="any" name="bool_{{idInput}}" class="user_input_initial" id="radio_no" value="NO"> {{tr "NO"}}
|
||||
{{tr "YES"}} <input style="margin-right: 20px" type="radio" step="any" name="bool_{{idInput}}" class="user_input_initial" id="radio_yes" value="YES">
|
||||
{{tr "NO"}} <input type="radio" step="any" name="bool_{{idInput}}" class="user_input_initial" id="radio_no" value="NO">
|
||||
</div>
|
||||
<div class="user_input_type_right range">
|
||||
<div class="row collapse">
|
||||
|
@ -2,8 +2,8 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:30%"></th>
|
||||
<th style="width:20%"></th>
|
||||
<th style="width:50%"></th>
|
||||
<th style="width:25%"></th>
|
||||
<th style="width:55%"></th>
|
||||
<th style="width:3%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
Loading…
x
Reference in New Issue
Block a user