Commit 7191275504628573c7d18015d104b99363633f0b

Authored by alex
1 parent 149959cb

Убрал маску с телефона, выронял figcapture

frontend/models/Feedback.php
... ... @@ -6,19 +6,19 @@
6 6 */
7 7  
8 8 namespace frontend\models;
9   -
10 9 use artbox\core\models\Feedback as ArtboxCoreFeedback;
11 10  
  11 +
12 12 class Feedback extends ArtboxCoreFeedback
13 13 {
14   - public function rules()
  14 + public function rules()
15 15 {
16 16 return [
17 17 [
18 18 [
19 19 'name',
20 20 'email',
21   - 'phone',
  21 + 'phone',
22 22 ],
23 23 'required',
24 24 'on' => self::SCENARIO_DEFAULT,
... ... @@ -47,7 +47,6 @@ class Feedback extends ArtboxCoreFeedback
47 47 'email',
48 48 'message' => \Yii::t('app', 'Wrong email'),
49 49 ],
50   -
51 50 [
52 51 [
53 52 'name',
... ... @@ -73,6 +72,7 @@ class Feedback extends ArtboxCoreFeedback
73 72 'returnUrl',
74 73 'safe',
75 74 ],
  75 +
76 76 ];
77 77 }
78 78  
... ...
frontend/views/gallery/index.php
... ... @@ -26,7 +26,8 @@
26 26 $gallery->image->getPath()
27 27 )[ 0 ] ?>x<?= getimagesize($gallery->image->getPath()
28 28 )[ 1 ] ?>">
29   - <figcaption class="image_figcapture"> <?=$gallery->language->title;?></figcaption>
  29 + <figcaption class="image_figcapture figcaption_h_40px"
  30 + > <?= $gallery->language->title; ?></figcaption>
30 31 <img src="<?= ImageHelper::set($gallery->image->getPath())
31 32 ->cropResize(360, 216)
32 33 ->quality(82)
... ...
frontend/views/site/contact.php
... ... @@ -117,7 +117,7 @@ JS;
117 117 <h2> <?=\Yii::t('app', 'Contact form')?> </h2>
118 118 </div>
119 119 </div>
120   -
  120 +
121 121 <div class="col-md-8 col-md-offset-2">
122 122 <?=$module->renderForm($this)?>
123 123  
... ...
frontend/web/css/site.css
... ... @@ -124,3 +124,8 @@ a.desc:after {
124 124 font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
125 125 }
126 126  
  127 +.figcaption_h_40px {
  128 + display: block;
  129 + height: 40px;
  130 +
  131 +}
127 132 \ No newline at end of file
... ...