Commit 6afa0829ad3e22258194de71da26501b4c0de2d3
1 parent
f37a4fe1
Запись на приём
Showing
4 changed files
with
83 additions
and
2 deletions
Show diff stats
frontend/controllers/SiteController.php
frontend/views/site/appment.php
| 1 | +<?php | ||
| 2 | +use artbox\core\components\SeoComponent; | ||
| 3 | +use yii\web\View; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * @var View $this | ||
| 7 | + */ | ||
| 8 | +/** | ||
| 9 | + * @var SeoComponent $seo | ||
| 10 | + */ | ||
| 11 | +$seo = \Yii::$app->get('seo'); | ||
| 12 | +$this->title = \Yii::t('app', 'Записаться на приём'); | ||
| 13 | +$this->params[ 'breadcrumbs' ][] = $this->title; | ||
| 14 | +?> | ||
| 15 | +<div class="container appment-page"> | ||
| 16 | + <section> | ||
| 17 | + <div class="col-md-12"> | ||
| 18 | + <div class="heading text-center"> | ||
| 19 | + <h2><?=$this->title?></h2> | ||
| 20 | + </div> | ||
| 21 | + <div class="col-md-8 col-md-offset-2"> | ||
| 22 | + <div class="forms_wr"> | ||
| 23 | + <div class="modal-body"> | ||
| 24 | + | ||
| 25 | + <form id="appointment-form" action="/site/appointment" method="POST" role="form"> | ||
| 26 | + <div class="form-group field-appointment-name"> | ||
| 27 | + <div class="on_input_"></div> | ||
| 28 | + <label class="control-label" for="appointment-name">Имя</label> | ||
| 29 | + <input type="text" id="appointment-name" class="form-control" name="Appointment[name]" aria-invalid="false"> | ||
| 30 | + | ||
| 31 | + <p class="help-block help-block-error"></p> | ||
| 32 | + </div> | ||
| 33 | + <div class="form-group field-appointment-name required"> | ||
| 34 | + <div class="on_input_"></div> | ||
| 35 | + <label class="control-label" for="appointment-name">Номер телефона</label> | ||
| 36 | + <input type="text" id="appointment-phone" class="form-control" name="Appointment[phone]"> | ||
| 37 | + | ||
| 38 | + <p class="help-block help-block-error"></p> | ||
| 39 | + </div> | ||
| 40 | + <div class="form-group field-appointment-date required has-datepicker"> | ||
| 41 | + <div class="on_input_"></div> | ||
| 42 | + <label class="control-label" for="appointment-date">Дата</label> | ||
| 43 | + <input type="text" id="appointment-date" class="form-control" name="Appointment[date]"> | ||
| 44 | + | ||
| 45 | + <p class="help-block help-block-error"></p> | ||
| 46 | + </div> | ||
| 47 | + <div class="datepicker-wr"> | ||
| 48 | + <div id="datepicker"></div> | ||
| 49 | + </div> | ||
| 50 | + <div class="form-group field-appointment-time"> | ||
| 51 | + <div class="on_input_"></div> | ||
| 52 | + <label class="control-label" for="appointment-service">Время</label> | ||
| 53 | + <input type="text" id="appointment-time" class="form-control" name="Appointment[time]"> | ||
| 54 | + | ||
| 55 | + <p class="help-block help-block-error"></p> | ||
| 56 | + </div> | ||
| 57 | + <div class="form-group field-appointment-service"> | ||
| 58 | + <div class="on_input_"></div> | ||
| 59 | + <label class="control-label" for="appointment-service">Услуга</label> | ||
| 60 | + <input type="text" id="appointment-service" class="form-control" name="Appointment[service]"> | ||
| 61 | + | ||
| 62 | + <p class="help-block help-block-error"></p> | ||
| 63 | + </div> | ||
| 64 | + <p class="text-center"> | ||
| 65 | + <button type="submit" class="send-form btn btn-lg btn-template-primary">Отправить</button> | ||
| 66 | + </p> | ||
| 67 | + </form> | ||
| 68 | + | ||
| 69 | + </div> | ||
| 70 | + </div> | ||
| 71 | + </div> | ||
| 72 | + </div> | ||
| 73 | + </section> | ||
| 74 | +</div> |
frontend/web/css/custom.css
frontend/web/css/style.turquoise.css
| @@ -2041,7 +2041,7 @@ fieldset[disabled] .btn-template-primary.active { | @@ -2041,7 +2041,7 @@ fieldset[disabled] .btn-template-primary.active { | ||
| 2041 | } | 2041 | } |
| 2042 | 2042 | ||
| 2043 | #heading-breadcrumbs { | 2043 | #heading-breadcrumbs { |
| 2044 | - background: url('../img/texture-bw.png') center center repeat; | 2044 | + background-color: #81e7d3; |
| 2045 | padding: 20px 0; | 2045 | padding: 20px 0; |
| 2046 | margin-bottom: 40px; | 2046 | margin-bottom: 40px; |
| 2047 | } | 2047 | } |
| @@ -3809,7 +3809,7 @@ hr { | @@ -3809,7 +3809,7 @@ hr { | ||
| 3809 | } | 3809 | } |
| 3810 | 3810 | ||
| 3811 | .breadcrumb > .active { | 3811 | .breadcrumb > .active { |
| 3812 | - color: #999999; | 3812 | + color: #ffffff; |
| 3813 | } | 3813 | } |
| 3814 | 3814 | ||
| 3815 | @media (max-width: 991px) { | 3815 | @media (max-width: 991px) { |