Skip to content

Commit

Permalink
(fix) add minimal constraints when creating events or tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Aug 15, 2015
1 parent f1a50bc commit 04e63e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox
Expand Up @@ -15,7 +15,8 @@
<label><var:string label:value="Title"/></label>
<input type="text"
class="md-title"
ng-model="editor.component.summary"/>
ng-model="editor.component.summary"
required="required"/>
</md-input-container>
<md-button class="md-icon-button" ng-click="editor.cancel()">
<md-icon aria-label="Close dialog">close</md-icon>
Expand Down Expand Up @@ -98,11 +99,11 @@
<div layout="row">
<md-input-container>
<label><var:string label:value="From"/></label>
<input type="text" ng-model="editor.component.startDate"/>
<input type="text" ng-model="editor.component.startDate" required="required"/>
</md-input-container>
<md-input-container>
<label><var:string label:value="To"/></label>
<input type="text" ng-model="editor.component.endDate"/>
<input type="text" ng-model="editor.component.endDate" required="required"/>
</md-input-container>
</div>
<!-- attach urls -->
Expand Down Expand Up @@ -240,7 +241,8 @@
<md-button type="button" ng-click="editor.component.$reset()">
<var:string label:value="Reset"/>
</md-button>
<md-button class="md-primary md-hue-3" type="submit">
<md-button class="md-primary md-hue-3" type="submit"
ng-disabled="editor.eventForm.$invalid">
<var:string label:value="Save"/>
</md-button>
</div>
Expand Down
6 changes: 4 additions & 2 deletions UI/Templates/SchedulerUI/UIxTaskEditorTemplate.wox
Expand Up @@ -15,7 +15,8 @@
<label><var:string label:value="Title"/></label>
<input type="text"
class="md-title"
ng-model="editor.component.summary"/>
ng-model="editor.component.summary"
required="required"/>
</md-input-container>
<md-button class="md-icon-button" ng-click="editor.cancel()">
<md-icon aria-label="Close dialog">close</md-icon>
Expand Down Expand Up @@ -206,7 +207,8 @@
<md-button type="button" ng-click="editor.component.$reset()">
<var:string label:value="Reset"/>
</md-button>
<md-button class="md-primary md-hue-3" type="submit">
<md-button class="md-primary md-hue-3" type="submit"
ng-disabled="editor.eventForm.$invalid">
<var:string label:value="Save"/>
</md-button>
</div>
Expand Down

0 comments on commit 04e63e5

Please sign in to comment.