<div class="strong-text-2">[% l('Patron Edit') %]</div>
<!-- IDL field documentation window -->
-<fieldset id="reg-field-doc" ng-show="selected_field_doc">
+<div id="reg-control-actions">
+ <div class="pad-all-min">
+ <button type="button" class="btn btn-default">[% l('Save') %]</button>
+ <button type="button" class="btn btn-default">[% l('Save & Clone') %]</button>
+ </div>
+ <div class="pad-all-min"><a href>[% l('Show Only Required Field') %]</a></div>
+ <div class="pad-all-min"><a href>[% l('Show Suggested Field') %]</a></div>
+ <fieldset id="reg-field-doc" ng-show="selected_field_doc">
<legend>
{{idl_fields[selected_field_doc.fm_class()][selected_field_doc.field()].label}}
</legend>
<div>{{selected_field_doc.string()}}</div>
-</fieldset>
+ </fieldset>
+</div>
[% MACRO formfield(cls, field, path, input_type) BLOCK;
/* make all input widgets the same width, i.e. fill their column */
.reg-field-input input:not([type="checkbox"]) { width: 100%; }
+
+/* selector contents float left to allow depth-based left-padding */
.reg-field-input .eg-org-selector,
.reg-field-input .btn-group {
width: 100%;
text-align: left;
}
+/* selector button labels float right */
.reg-field-input .eg-org-selector button,
.reg-field-input .btn-group > button {
width: 100%;
/* floating div along top-right with field documentation */
-/* TODO: make this part of the floatin save/clone div */
-#reg-field-doc {
+#reg-control-actions {
position: fixed;
top:160px;
right:30px;
margin-top: 20px;
}
+#reg-field-doc {
+ border:2px dashed #d9e8f9;
+ -moz-border-radius: 10px;
+ font-weight: bold;
+ padding: 20px;
+ margin-top: 20px;
+}
+
#reg-field-doc legend {
/* otherwise the font size is quite large */
font-size: 100%;
});
};
- // some data retrieval depe
+ // some org settings require the retrieval of additional data...
service.process_org_settings = function(settings) {
if (!settings['sms.enable']) {