فهرست منبع

create/update button

sou 7 سال پیش
والد
کامیت
cc0599a3f2
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      lib/views/admin/global-notification-detail.html

+ 7 - 1
lib/views/admin/global-notification-detail.html

@@ -131,7 +131,13 @@
           <div class="col-sm-offset-5 col-sm-12 m-t-20">
             <input type="hidden" name="notificationGlobal[id]" value="{{ setting.id }}">
             <input type="hidden" name="_csrf" value="{{ csrf() }}">
-            <button type="submit" class="btn btn-primary">{{ t('Update') }}</button>
+            <button type="submit" class="btn btn-primary">
+              {% if setting %}
+                {{ t('Update') }}
+              {% else %}
+                {{ t('Create') }}
+              {% endif %}
+            </button>
           </div>
         </form>
       </div>