Sha256: adfdd3e57a690b7e31f101414fa4a5079b1ed9a8e306630307313269a3077eb5

Contents?: true

Size: 1.52 KB

Versions: 6

Compression:

Stored size: 1.52 KB

Contents

<div class="container">
	<div ui-view>
		<div class="page-header">
			<h1>Survey: `{{survey.data.attributes.name}}`, Question: `{{question.data.attributes.text}}`</h1>
		</div>

		<div class="row">
			<div class="col-xs-8">
				<button type="button" class="btn btn-default" ui-sref="surveys.questions">Back to Questions</button>
				<button type="button" class="btn btn-default" ng-click="answer_new()">Add Answer</button>
			</div>
			<div class="col-xs-4">
				<select ng-model="headers['Accept-Language']" name="language" id="language" required class="form-control pull-right">
					<option value="en">English</option>
					<option value="fr">French</option>
				</select>
			</div>
		</div>

		<table class="table table-hover">
			<thead>
			  <tr>
				<th>Answer</th>
				<th></th>
			  </tr>
			</thead>
			<tbody>
				<tr ng-repeat="datum in answers.data">
					<td>{{datum.attributes.text}}</td>
					<td>
						<div class="form-group">
							<label class="col-sm-4 control-label">Next Question</label>
							<div class="col-sm-4">
								<select class="form-control" ng-options="item.id as item.attributes.text for item in questions.data" ng-model="datum.attributes['next-question-id']"></select>
							</div>
						</div>
					</td>
					<td align="right">
						<a ng-click="answer_edit(datum.id)" class="btn btn-default" href="#" onclick="return false;">Edit</a>
						<a ng-click="answer_delete(datum.links.self)" class="btn btn-danger" href="#" onclick="return false;">Delete</a>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_record_survey_api-0.0.19 spec/test_app/app/assets/javascripts/components/surveys/SurveyQuestionAnswersView.html
active_record_survey_api-0.0.18 spec/test_app/app/assets/javascripts/components/surveys/SurveyQuestionAnswersView.html
active_record_survey_api-0.0.17 spec/test_app/app/assets/javascripts/components/surveys/SurveyQuestionAnswersView.html
active_record_survey_api-0.0.14 spec/test_app/app/assets/javascripts/components/surveys/SurveyQuestionAnswersView.html
active_record_survey_api-0.0.12 spec/test_app/app/assets/javascripts/components/surveys/SurveyQuestionAnswersView.html
active_record_survey_api-0.0.11 spec/test_app/app/assets/javascripts/components/surveys/SurveyQuestionAnswersView.html