2015-08-02 13:57:46 +00:00
|
|
|
<div ng-if='loading' class='center_all'>
|
|
|
|
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
|
|
|
|
</div>
|
|
|
|
<div layout='row' ng-if='!loading'>
|
2015-07-25 15:25:45 +00:00
|
|
|
<div flex='20'></div>
|
|
|
|
<div layout="coulumn" flex="60">
|
2015-07-23 21:57:14 +00:00
|
|
|
<md-card layout-padding style="width:100%">
|
2015-07-25 15:25:45 +00:00
|
|
|
<h1><i class="fa fa-clipboard"></i> {{task.title}}</h1>
|
2015-07-23 21:57:14 +00:00
|
|
|
<h4>Due At: {{ task.date }}</h4>
|
|
|
|
<p>{{ dueTimeFromNow }}</p>
|
2015-07-25 15:25:45 +00:00
|
|
|
<p style="white-space: pre-wrap;">{{task.description}}</p>
|
2015-07-23 21:57:14 +00:00
|
|
|
<p>{{(task.isPersonal) ? "Personal" : "Project"}} Task</p>
|
|
|
|
|
|
|
|
<!-- <md-divider></md-divider> -->
|
|
|
|
|
|
|
|
<div ng-repeat="component in task.components">
|
|
|
|
<md-card layout-padding>
|
2015-07-25 15:25:45 +00:00
|
|
|
<div ng-if="component.isMandatory && !(component.value && component.value != '')">
|
2015-07-23 21:57:14 +00:00
|
|
|
<font color="red">
|
|
|
|
<i class="fa fa-certificate"></i>
|
|
|
|
</font>
|
|
|
|
</div>
|
|
|
|
<!-- if text box -->
|
|
|
|
<div ng-if="component.type == 'textbox'">
|
|
|
|
<md-input-container>
|
|
|
|
<label>{{component.label}}</label>
|
2015-07-25 15:25:45 +00:00
|
|
|
<input ng-model="component.value" ng-disabled="readOnly">
|
2015-07-23 21:57:14 +00:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<!-- if Text Area -->
|
|
|
|
<div ng-if="component.type == 'textarea'">
|
|
|
|
<md-input-container>
|
|
|
|
<label>{{component.label}}</label>
|
2015-07-25 15:25:45 +00:00
|
|
|
<textarea ng-model="component.value" ng-disabled="readOnly"></textarea>
|
2015-07-23 21:57:14 +00:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<!-- if Checkbox -->
|
|
|
|
<div ng-if="component.type == 'checkbox'">
|
2015-07-25 15:25:45 +00:00
|
|
|
<md-checkbox ng-model="component.value" aria-label="Checkbox 1" ng-disabled="readOnly">
|
2015-07-23 21:57:14 +00:00
|
|
|
{{ component.label}}
|
|
|
|
</md-checkbox>
|
|
|
|
</div>
|
|
|
|
<!-- if Link -->
|
|
|
|
<div ng-if="component.type == 'link'" layout="column" ng-init="initLinkComp(component)" style="width: 100%" layout-align="center">
|
|
|
|
<md-button ng-href="{{component.href}}" style="width: 100%" target="_blank">
|
2015-07-25 15:25:45 +00:00
|
|
|
<i class="fa fa-link"></i> {{component.title}}
|
2015-07-23 21:57:14 +00:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
<!-- if RadioButtons -->
|
|
|
|
<div ng-if="component.type == 'radiobuttons'" ng-init="initRadioButtonsComp(component)">
|
|
|
|
{{component.title}}
|
2015-07-25 15:25:45 +00:00
|
|
|
<md-radio-group ng-model="component.value" ng-change="RB(component)" ng-disabled="readOnly">
|
2015-07-23 21:57:14 +00:00
|
|
|
<md-radio-button ng-repeat="option in component.values" value="{{option.text}}" class="md-primary">{{option.text}}</md-radio-button>
|
|
|
|
</md-radio-group>
|
|
|
|
</div>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
2015-07-25 15:25:45 +00:00
|
|
|
<div layout='row' ng-if='!readOnly'>
|
|
|
|
<div class='spacer'></div>
|
|
|
|
<div style='position:relative;'>
|
|
|
|
<md-button class='md-primary' ng-click='submitTask($event)'>Submit</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-23 21:57:14 +00:00
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
|
2015-07-25 15:25:45 +00:00
|
|
|
<div flex='20'></div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
2015-07-23 21:57:14 +00:00
|
|
|
|
2015-07-25 15:25:45 +00:00
|
|
|
|