119 lines
5.7 KiB
PHP
119 lines
5.7 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>Google-Form-Clone</title>
|
|
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet" />
|
|
<link rel="stylesheet" href={{ asset('css/app.css') }} />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap"
|
|
rel="stylesheet" />
|
|
</head>
|
|
|
|
<body>
|
|
<div class="form_header">
|
|
<div class="form_header_left">
|
|
<img src={{ asset('images/google-form.png') }} class="form_header_icon" height="45px" width="40px" />
|
|
<input type="text" name="title" id="form-title-nav" placeholder="Untitled Form" class="form_name" />
|
|
<img src={{ asset('images/folder.png') }} alt="" class="form_header_icon" height="20px"
|
|
width="20px" />
|
|
<img src={{ asset('images/star.svg') }} alt="" class="form_header_icon" />
|
|
</div>
|
|
<div class="form_header_right">
|
|
<span><img src={{ asset('images/palette-svgrepo-com.svg') }} alt="pallette" height="20px"
|
|
width="20px" /></span>
|
|
<span><img src={{ asset('images/view.png') }} alt="eye" height="20px" width="20px"
|
|
onclick="previewForm()" /></span>
|
|
<span><img src={{ asset('images/undo.png') }} alt="" height="20px" width="20px" /></span>
|
|
<span><img src={{ asset('images/forward.png') }} alt="" height="20px" width="20px" /></span>
|
|
<button class="btn">Send</button>
|
|
<span><img src={{ asset('images/menu.png') }} alt="menu" height="30px" width="30px" /></span>
|
|
<span><img src={{ asset('images/user.png') }} alt="" height="30px" width="30px" /></span>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="box">
|
|
<input type="radio" class="tab-toggle" name="tab-toggle" id="tab1" checked />
|
|
<input type="radio" class="tab-toggle" name="tab-toggle" id="tab2" />
|
|
<input type="radio" class="tab-toggle" name="tab-toggle" id="tab3" />
|
|
|
|
<ul class="tab-list">
|
|
<li class="tab-item">
|
|
<label class="tab-trigger" for="tab1"><b>Questions</b></label>
|
|
</li>
|
|
<li class="tab-item">
|
|
<label class="tab-trigger" for="tab2"><b>Responses</b></label>
|
|
</li>
|
|
<li class="tab-item">
|
|
<label class="tab-trigger" for="tab3"><b>Settings</b></label>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="question_form bg-light p-4 rounded shadow-sm">
|
|
<div class="section">
|
|
<div class="question_title_section mb-4">
|
|
<div class="question_form_top">
|
|
<input type="text" id="form-title" name="title" class="form-control form-control-lg mb-2" placeholder="Untitled Form" />
|
|
<input type="text" name="description" id="form-description" class="form-control form-control-sm" placeholder="Form Description" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="questions_section">
|
|
<div class="question mb-4 p-3 border rounded bg-white">
|
|
<select class="form-control question_type mb-3" onchange="changeQuestionType(this)">
|
|
<option value="">Select Question Type</option>
|
|
<option value="multiple_choice">Multiple Choice</option>
|
|
<option value="checkbox">Checkbox</option>
|
|
<option value="dropdown">Dropdown</option>
|
|
</select>
|
|
<input type="text" name="question" class="form-control question-input mb-3" placeholder="Type your question here" />
|
|
<div class="options-container mb-3">
|
|
<div class="option d-flex align-items-center mb-2">
|
|
<input type="text" name="option" class="form-control option-input" placeholder="Option 1" />
|
|
<span class="delete-option ml-2 text-danger" onclick="deleteOption(this)" style="cursor: pointer;">✕</span>
|
|
</div>
|
|
</div>
|
|
<button class="btn btn-secondary mb-2" onclick="addOption(this)">
|
|
Add Option
|
|
</button>
|
|
<button class="btn btn-outline-danger btn-sm" id="moveUpButton" onclick="deleteQuestion(this);">
|
|
<img src="{{ asset('images/bin.png') }}" alt="" width="20px" height="20px" />
|
|
</button>
|
|
</div>
|
|
<div class="sidebar">
|
|
<div id="moveableDiv">
|
|
<button class="btn btn-light shadow-sm" onclick="addNewQuestion();">
|
|
<img src="{{ asset('images/add.png') }}" alt="" width="20px" height="20px" />
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="background-color: #f0ebf8"class="btnsub">
|
|
<span>
|
|
<button type="submit" name="save" value="save" onclick="saveForm()"
|
|
class="btnsave btn btn-secondary">
|
|
Save
|
|
</button>
|
|
</span>
|
|
|
|
|
|
|
|
<span>
|
|
<button type="submit" name="publish" value="publish" onclick="saveForm()"
|
|
class="btnsave btn btn-secondary">
|
|
Publish
|
|
</button>
|
|
</span>
|
|
</div>
|
|
<script src={{ asset('js/script.js') }}></script>
|
|
</body>
|
|
|
|
</html>
|