Explorar el Código

create/update button

sou hace 7 años
padre
commit
cc0599a3f2
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  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>