Commit c13979e24ba6f0ece10f0ca098791d19da168a68
1 parent
4c9663e0
test
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
common/models/Team.php
frontend/views/accounts/_team_form.php
... | ... | @@ -116,7 +116,7 @@ |
116 | 116 | |
117 | 117 | <div class="input-blocks-wrapper"> |
118 | 118 | <div class="admin-save-btn skills-save-btn admin-add-remove-wr style"> |
119 | - <?= Html::submitButton('Добавить', [ 'class' => 'input-blocks-wrapper button' ]) ?> | |
119 | + <?= Html::submitButton($team->isNewRecord?'Добавить':'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?> | |
120 | 120 | <div class="admin-remove-note"> |
121 | 121 | <?php |
122 | 122 | if(!$team->isNewRecord) { | ... | ... |