Skip to content

Commit

Permalink
update create and manage pages
Browse files Browse the repository at this point in the history
  • Loading branch information
VikramTiwari committed Sep 3, 2016
1 parent e4ff9ca commit 3fd8e32
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 32 deletions.
56 changes: 28 additions & 28 deletions public/views/create.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<div class="" data-ng-controller="CirclesController as vm">
<h1>Create Circles</h1>
<h1>Create Circles</h1>

<form name="circleForm" class="form-horizontal col-md-6" role="form" data-ng-submit="vm.create(circleForm.$valid)" novalidate>
<div class="form-group" ng-class="{ 'has-error' : submitted && articleForm.title.$invalid }">
<label mean-token="'create-cicle-name'" for="title" class="col-md-2 control-label">Name</label>
<div class="col-md-10">
<input name="name" type="text" class="form-control" data-ng-model="vm.circle.name" id="name" placeholder="Name" required>
<div ng-show="submitted && circleForm.name.$invalid" class="help-block">
<p ng-show="articleForm.title.$error.required">Name is required</p>
</div>
</div>
<form name="circleForm" class="form-horizontal col-md-6" role="form" data-ng-submit="vm.create(circleForm.$valid)" novalidate>
<div class="form-group" ng-class="{ 'has-error' : submitted && articleForm.title.$invalid }">
<label mean-token="'create-cicle-name'" for="title" class="col-md-2 control-label">Name</label>
<div class="col-md-10">
<input name="name" type="text" class="form-control" data-ng-model="vm.circle.name" id="name" placeholder="Name" required>
<div ng-show="submitted && circleForm.name.$invalid" class="help-block">
<p ng-show="articleForm.title.$error.required">Name is required</p>
</div>
</div>

</div>
</div>

<div class="form-group">
<label mean-token="'circles'" for="circles" class="col-md-2 control-label">Circles</label>
<div class="col-md-10">
<ui-select multiple ng-model="vm.circle.circles">
<ui-select-match class="ui-select-match" placeholder="Select circles...">{{$item}}</ui-select-match>
<ui-select-choices class="ui-select-choices" repeat="circle in vm.availableCircles | filter:$select.search">
{{circle}}
</ui-select-choices>
</ui-select>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button mean-token="'edit-submit'" type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
<div class="form-group">
<label mean-token="'circles'" for="circles" class="col-md-2 control-label">Circles</label>
<div class="col-md-10">
<ui-select multiple ng-model="vm.circle.circles">
<ui-select-match class="ui-select-match" placeholder="Select circles...">{{$item}}</ui-select-match>
<ui-select-choices class="ui-select-choices" repeat="circle in vm.availableCircles | filter:$select.search">
{{circle}}
</ui-select-choices>
</ui-select>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<button mean-token="'edit-submit'" type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>

</div>
6 changes: 2 additions & 4 deletions public/views/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="" data-ng-controller="CirclesController">
<md-content data-ng-controller="CirclesController">
<h1>Circles Package</h1>
<ol>
<li>
Expand All @@ -8,6 +8,4 @@ <h1>Circles Package</h1>
<a ui-sref="create circles">Create new Circle</a>
</li>
</ol>

</div>

</md-content>

0 comments on commit 3fd8e32

Please sign in to comment.