mirror of
https://github.com/zadam/trilium.git
synced 2025-01-06 07:13:48 +08:00
small changes to attribute dialog
This commit is contained in:
parent
5b657ad961
commit
16535f6a73
1 changed files with 11 additions and 7 deletions
|
@ -562,7 +562,6 @@
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Value</th>
|
<th>Value</th>
|
||||||
<th>Inheritable</th>
|
<th>Inheritable</th>
|
||||||
<th></th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody data-bind="foreach: ownedAttributes">
|
<tbody data-bind="foreach: ownedAttributes">
|
||||||
|
@ -572,7 +571,7 @@
|
||||||
<input type="hidden" name="position" data-bind="value: position"/>
|
<input type="hidden" name="position" data-bind="value: position"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<select data-bind="options: $parent.availableTypes, optionsText: 'text', optionsValue: 'value', value: type, event: { change: $parent.typeChanged }"></select>
|
<select class="form-control" style="width: auto;" data-bind="options: $parent.availableTypes, optionsText: 'text', optionsValue: 'value', value: type, event: { change: $parent.typeChanged }"></select>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- Change to valueUpdate: blur is necessary because jQuery UI autocomplete hijacks change event -->
|
<!-- Change to valueUpdate: blur is necessary because jQuery UI autocomplete hijacks change event -->
|
||||||
|
@ -594,20 +593,25 @@
|
||||||
|
|
||||||
<select data-bind="options: $parent.multiplicityTypes, optionsText: 'text', optionsValue: 'value', value: labelDefinition.multiplicityType"></select>
|
<select data-bind="options: $parent.multiplicityTypes, optionsText: 'text', optionsValue: 'value', value: labelDefinition.multiplicityType"></select>
|
||||||
|
|
||||||
<input type="checkbox" value="true" data-bind="checked: labelDefinition.isPromoted" /> Promoted
|
<label>
|
||||||
|
<input type="checkbox" value="true" data-bind="checked: labelDefinition.isPromoted" />
|
||||||
|
Promoted
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div data-bind="visible: type == 'relation-definition'">
|
<div data-bind="visible: type == 'relation-definition'">
|
||||||
<select data-bind="options: $parent.multiplicityTypes, optionsText: 'text', optionsValue: 'value', value: relationDefinition.multiplicityType"></select>
|
<select data-bind="options: $parent.multiplicityTypes, optionsText: 'text', optionsValue: 'value', value: relationDefinition.multiplicityType"></select>
|
||||||
|
|
||||||
<input type="checkbox" value="true" data-bind="checked: relationDefinition.isPromoted" /> Promoted
|
<label>
|
||||||
|
<input type="checkbox" value="true" data-bind="checked: relationDefinition.isPromoted" />
|
||||||
|
Promoted
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td title="Inheritable relations are automatically inherited to the child notes">
|
<td title="Inheritable relations are automatically inherited to the child notes">
|
||||||
<input type="checkbox" value="1" data-bind="checked: isInheritable" />
|
<input type="checkbox" value="1" data-bind="checked: isInheritable" />
|
||||||
</td>
|
|
||||||
<td title="Delete" style="padding: 13px; cursor: pointer;">
|
<span title="Delete" style="padding: 13px; cursor: pointer;" class="glyphicon glyphicon-trash" data-bind="click: $parent.deleteAttribute"></span>
|
||||||
<span class="glyphicon glyphicon-trash" data-bind="click: $parent.deleteAttribute"></span>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue