Commit 72eb73dd authored by BsmhDev's avatar BsmhDev

-finish create-quiz view

parent d690725e
@import "{}/imports/ui/stylesheets/game-layout.less";
@import "{}/imports/ui/stylesheets/manage-layout.less";
@import "{}/imports/ui/stylesheets/not-found.less";
@import "{}/imports/ui/stylesheets/home.less";
<template name="question_form">
<form class="question-form form-horizontal">
<div class="form-group">
<div class="col-sm-10">
<input type="text" class="form-control" name="question" placeholder="הכנס את השאלה">
</div>
<div class="col-sm-2">
<button type="button" class="remove-question btn btn-danger">-</button>
<div class="panel panel-default">
<div class="panel-heading">
<div class="form-group">
<div class="col-sm-12">
<div class="input-group">
<input type="text" class="form-control input-lg" name="question" placeholder="הכנס את השאלה">
<span class="input-group-btn">
<button class="remove-question btn btn-danger btn-lg" type="button">
<span class="glyphicon glyphicon-minus" aria-hidden="true"></span>
</button>
</span>
</div>
</div>
</div>
</div>
<div class="panel-body">
<div class="form-group">
<div class="col-sm-9">
<label for="answer1" class="control-label col-sm-1">1</label>
<input name="answer1" type="text" class="form-control col-sm-11" placeholder="הכנס תשובה">
</div>
<div class="col-sm-3">
<label for="points1" class="control-label col-sm-4">ניקוד</label>
<input name="points1" type="number" class="form-control col-sm-6" value="0">
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
<label for="answer2" class="control-label col-sm-1">2</label>
<input name="answer2" type="text" class="form-control col-sm-11" placeholder="הכנס תשובה">
</div>
<div class="col-sm-3">
<label for="points2" class="control-label col-sm-4">ניקוד</label>
<input name="points2" type="number" class="form-control col-sm-6" value="0">
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
<label for="answer3" class="control-label col-sm-1">3</label>
<input name="answer3" type="text" class="form-control col-sm-11" placeholder="הכנס תשובה">
</div>
<div class="col-sm-3">
<label for="points3" class="control-label col-sm-4">ניקוד</label>
<input name="points3" type="number" class="form-control col-sm-6" value="0">
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
<label for="answer4" class="control-label col-sm-1">4</label>
<input name="answer4" type="text" class="form-control col-sm-11" placeholder="הכנס תשובה">
</div>
<div class="col-sm-3">
<label for="points4" class="control-label col-sm-4">ניקוד</label>
<input name="points4" type="number" class="form-control col-sm-6" value="0">
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-1">
<input type="number" class="form-control" value="0">
</div>
<label for="points1" class="col-sm-1 control-label">ניקוד</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="answer1" placeholder="הכנס תשובה">
</div>
<label for="answer1" class="col-sm-1 control-label">תשובה 1</label>
</div>
<div class="form-group">
<div class="col-sm-1">
<input type="number" class="form-control" value="0">
</div>
<label for="points2" class="col-sm-1 control-label">ניקוד</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="answer2" placeholder="הכנס תשובה">
</div>
<label for="answer2" class="col-sm-1 control-label">תשובה 2</label>
</div>
<div class="form-group">
<div class="col-sm-1">
<input type="number" class="form-control" value="0">
</div>
<label for="points3" class="col-sm-1 control-label">ניקוד</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="answer3" placeholder="הכנס תשובה">
</div>
<label for="answer3" class="col-sm-1 control-label">תשובה 3</label>
</div>
<div class="form-group">
<div class="col-sm-1">
<input type="number" class="form-control" value="0">
</div>
<label for="points4" class="col-sm-1 control-label">ניקוד</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="answer4" placeholder="הכנס תשובה">
</div>
<label for="answer4" class="control-label">תשובה 4</label>
</div>
</form>
</template>
\ No newline at end of file
<template name="manage_layout">
<div id="manage">
{{> Template.dynamic template=main}}
<div class="container">
{{> Template.dynamic template=main}}
</div>
</div>
</template>
<template name="create_quiz">
<div id="create-quiz">
<h1>צור שאלון</h1>
{{#each questionId in questions}} {{> question_form removeQuestion=(removeQuestion questionId)}} {{/each}}
<button type="button" class="add-question btn btn-primary">+</button>
<button type="button" class="save-quiz btn btn-primary">Submit</button>
<div class="row">
<div class="col-sm-12">
<div class="page-header">
<h1>צור שאלון</h1>
</div>
</div>
</div>
{{#each questionId in questions}}
<div class="row">
<div class="col-sm-12">
{{> question_form removeQuestion=(removeQuestion questionId)}}
</div>
</div>
{{/each}}
<div class="row">
<div class="col-sm-12">
<button class="add-question btn btn-primary btn-lg btn-block"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
</div>
</div>
<hr />
<div class="row">
<div class="col-sm-12">
<button type="button" class="save-quiz btn btn-success btn-lg col-sm-2 pull-left"><span class="glyphicon glyphicon-ok" aria-hidden="true"></span></button>
</div>
</div>
</div>
</template>
\ No newline at end of file
#manage {
.container {
padding: 20px 100px;
}
.panel-heading>.form-group{
margin-bottom: 0;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment