Adding DIV layer to hotkeys/presets forms and new stylus mixins

This commit is contained in:
Bruno Alves de Faria 2017-05-02 17:28:47 -03:00 committed by Erik Ziegler
parent 2f7722d569
commit 9f7c974cca
6 changed files with 50 additions and 60 deletions

View File

@ -1,5 +1,5 @@
<template name="dialogForm">
<div id="{{this.id}}" class="modal fade" tabindex="-1" role="dialog">
<div id="{{this.id}}" class="modal fade {{this.class}}" tabindex="-1" role="dialog">
<div class="modal-dialog {{this.dialogClass}}" role="document">
{{#form class='modal-content' hideValidationBox=true
api=(extend instance.api instance.data.api) schema=this.schema

View File

@ -1,5 +1,5 @@
<template name="dialogLoading">
<div id="{{this.id}}" class="modal fade" tabindex="-1" role="dialog">
<div id="{{this.id}}" class="modal fade {{this.class}}" tabindex="-1" role="dialog">
<div class="loading-text noselect">
{{choose this.text 'Loading...'}} <i class="fa fa-spin fa-circle-o-notch fa-fw"></i>
</div>

View File

@ -1,5 +1,5 @@
<template name="dialogSimple">
<div id="{{this.id}}" class="modal fade" tabindex="-1" role="dialog">
<div id="{{this.id}}" class="modal fade {{this.class}}" tabindex="-1" role="dialog">
<div class="modal-dialog {{this.dialogClass}}" role="document">
<div class="modal-content">
{{>dialogHeader this}}

View File

@ -11,39 +11,25 @@ vendorize(property, value)
{property} value
animation(a)
-webkit-animation: a
-moz-animation: a
-ms-animation: a
-o-animation: a
animation: a
vendorize(animation, a)
transition(t)
transition: t
-webkit-transition: t
-ms-transition: t
-o-transition: t
-moz-transition: t
border-radius(r)
vendorize(border-radius, r)
transition-delay(d)
transition-delay: d
-webkit-transition-delay: d
-ms-transition-delay: d
-o-transition-delay: d
-moz-transition-delay: d
box-shadow(s)
vendorize(box-shadow, s)
transform(t)
transform: t
-webkit-transform: t
-ms-transform: t
-o-transform: t
-moz-transform: t
vendorize(transform, t)
transform-origin(o)
transform-origin: o
-webkit-transform-origin: o
-ms-transform-origin: o
-o-transform-origin: o
-moz-transform-origin: o
vendorize(transform-origin, o)
transition(t)
vendorize(transition, t)
transition-delay(d)
vendorize(transition-delay, d)
placeholder-color(c)
&::-webkit-input-placeholder
@ -53,4 +39,4 @@ placeholder-color(c)
&::-moz-placeholder
color: c
&:-ms-input-placeholder
color: c
color: c

View File

@ -1,11 +1,13 @@
<template name="hotkeysForm">
{{#form (extend this class='form-themed' api=instance.api)}}
{{#each hotkeyInputInformation in getHotkeyInputInformationList}}
{{>inputText (extend hotkeyInputInformation class='hotkey')}}
{{/each}}
<div class="clearfix form-buttons">
{{#form (extend this api=instance.api)}}
<div class="form-content">
{{#each hotkeyInputInformation in getHotkeyInputInformationList}}
{{>inputText (extend hotkeyInputInformation class='hotkey')}}
{{/each}}
</div>
<div class="form-buttons clearfix">
{{#button class='btn btn-danger pull-left m-r-1' action='resetDefaults'}}Reset to Defaults{{/button}}
{{#button class='btn btn-primary pull-right' action='save'}}Save{{/button}}
{{#button class='btn btn-secondary pull-right m-r-1' action='resetDefaults'}}Reset to Defaults{{/button}}
</div>
{{/form}}
</template>

View File

@ -1,28 +1,30 @@
<template name="windowLevelPresetsForm">
{{#form (extend this class='form-themed' api=instance.api)}}
<table>
<thead>
<tr>
<th>Preset</th>
<th>Description</th>
<th>Window Level (WL)</th>
<th>Window Width (WW)</th>
</tr>
</thead>
<tbody>
{{#each presetInputInformation in getPresetsInputInformationList}}
{{#group base='baseTr' key=(concat @index)}}
<td>{{sum @index 1}}</td>
<td>{{>inputText key='id' value=presetInputInformation.id}}</td>
<td>{{>inputText key='wc' value=(filterNaN presetInputInformation.wc) dataType='Number'}}</td>
<td>{{>inputText key='ww' value=(filterNaN presetInputInformation.ww) dataType='Number'}}</td>
{{/group}}
{{/each}}
</tbody>
</table>
<div class="clearfix form-buttons">
{{#form (extend this api=instance.api)}}
<div class="form-content">
<table>
<thead>
<tr>
<th>Preset</th>
<th>Description</th>
<th>Window Level (WL)</th>
<th>Window Width (WW)</th>
</tr>
</thead>
<tbody>
{{#each presetInputInformation in getPresetsInputInformationList}}
{{#group base='baseTr' key=(concat @index)}}
<td>{{sum @index 1}}</td>
<td>{{>inputText key='id' value=presetInputInformation.id}}</td>
<td>{{>inputText key='wc' value=(filterNaN presetInputInformation.wc) dataType='Number'}}</td>
<td>{{>inputText key='ww' value=(filterNaN presetInputInformation.ww) dataType='Number'}}</td>
{{/group}}
{{/each}}
</tbody>
</table>
</div>
<div class="form-buttons clearfix">
{{#button class='btn btn-danger pull-left m-r-1' action='resetDefaults'}}Reset to Defaults{{/button}}
{{#button class='btn btn-primary pull-right' action='save'}}Save{{/button}}
{{#button class='btn btn-secondary pull-right m-r-1' action='resetDefaults'}}Reset to Defaults{{/button}}
</div>
{{/form}}
</template>