Improving User Preferences dialog

This commit is contained in:
Bruno Alves de Faria 2017-09-28 08:09:15 -03:00
parent 44fa8f0e21
commit 06fe7f0da7
6 changed files with 10 additions and 7 deletions

View File

@ -15,6 +15,7 @@
<div class="form-buttons clearfix">
{{#button class='btn btn-danger pull-left' action='resetDefaults'}}Reset to Defaults{{/button}}
{{#button class='btn btn-primary pull-right' action='save'}}Save{{/button}}
{{#button class='btn btn-default pull-right m-r-1' tagAttributes=(extend '' data-dismiss='modal')}}Cancel{{/button}}
</div>
{{/form}}
</template>

View File

@ -17,7 +17,8 @@ Template.hotkeysForm.onCreated(() => {
resetDefaults() {
const { contextName } = instance.data;
const dialogOptions = {
title: 'Reset Shortcuts to Default',
class: 'themed',
title: 'Reset Keyboard Shortcuts',
message: 'Are you sure you want to reset all the shortcuts to their defaults?'
};

View File

@ -3,7 +3,7 @@
<thead>
<tr>
<th class="text-right p-r-1">Function</th>
<th>Shortcut</th>
<th class="text-center">Shortcut</th>
</tr>
</thead>
<tbody>

View File

@ -6,8 +6,8 @@
<tr>
<th class="p-x-1 text-center">Preset</th>
<th class="p-x-1">Description</th>
<th class="p-x-1">Window Level (WL)</th>
<th class="p-x-1">Window Width (WW)</th>
<th class="p-x-1">Window</th>
<th class="p-x-1">Level</th>
</tr>
</thead>
<tbody>
@ -15,8 +15,8 @@
{{#group base='baseTr' key=(concat @index)}}
<td class="p-x-1 text-center">{{sum @index 1}}</td>
<td class="p-x-1">{{>inputText key='id' value=presetInputInformation.id}}</td>
<td class="p-x-1">{{>inputText key='wc' value=(filterNaN presetInputInformation.wc) dataType='Number'}}</td>
<td class="p-x-1">{{>inputText key='ww' value=(filterNaN presetInputInformation.ww) dataType='Number'}}</td>
<td class="p-x-1">{{>inputText key='wc' value=(filterNaN presetInputInformation.wc) dataType='Number'}}</td>
{{/group}}
{{/each}}
</tbody>

View File

@ -15,7 +15,8 @@ Template.windowLevelPresetsForm.onCreated(() => {
resetDefaults() {
const dialogOptions = {
title: 'Reset Window Level Presets to Default',
class: 'themed',
title: 'Reset Window/Levels Presets',
message: 'Are you sure you want to reset all the window level presets to their defaults?'
};

View File

@ -107,7 +107,7 @@ Meteor.startup(function() {
// Register the tool switching commands
registerToolCommands({
wwwc: 'Window W/L',
wwwc: 'W/L',
zoom: 'Zoom',
angle: 'Angle Measurement',
dragProbe: 'Pixel Probe',