فهرست منبع

Change color for edit button

Jeremy Stretch 5 سال پیش
والد
کامیت
a969b81e63
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      netbox/utilities/tables.py

+ 1 - 1
netbox/utilities/tables.py

@@ -142,7 +142,7 @@ class ButtonsColumn(tables.TemplateColumn):
         </a>
         </a>
     {{% endif %}}
     {{% endif %}}
     {{% if "edit" in buttons and perms.{app_label}.change_{model_name} %}}
     {{% if "edit" in buttons and perms.{app_label}.change_{model_name} %}}
-        <a href="{{% url '{app_label}:{model_name}_edit' {pk_field}=record.{pk_field} %}}?return_url={{{{ request.path }}}}" class="btn btn-xs btn-warning" title="Edit">
+        <a href="{{% url '{app_label}:{model_name}_edit' {pk_field}=record.{pk_field} %}}?return_url={{{{ request.path }}}}" class="btn btn-xs btn-info" title="Edit">
             <i class="fa fa-pencil"></i>
             <i class="fa fa-pencil"></i>
         </a>
         </a>
     {{% endif %}}
     {{% endif %}}