GenieACS-GUI: Copy Preset

Senthil K senthilkrishnan at tataelxsi.co.in
Thu Oct 1 04:39:34 EDT 2015


Can someone remove me from this list, i tried the unsubscribe its not working... pls 

________________________________________
From: Users <users-bounces at lists.genieacs.com> on behalf of Markus Mehlan <markus.mehlan at argus.info>
Sent: Thursday, October 1, 2015 1:10 PM
To: users at lists.genieacs.com
Subject: Re: GenieACS-GUI: Copy Preset

Thank you for your hint. I removed the readonly attribute in the erb-file.

Regards,
Markus

--- /root/genieacs-gui/app/views/presets/_form.html.erb.orig
2015-10-01 08:34:01.992169118 +0200
+++ /root/genieacs-gui/app/views/presets/_form.html.erb 2015-10-01
08:37:29.197187182 +0200
@@ -10,7 +10,7 @@
  <%= token_tag form_authenticity_token %>
  <div class="field">
    <label for="name">Name</label><br />
-  <input id="name" name="name" type="text" <%= 'readonly' if
@preset.include? '_id' %> value="<%= @preset['_id'] %>" />
+  <input id="name" name="name" type="text" value="<%= @preset['_id'] %>" />
  </div>
  <br/>
  <div class="field">



Am 29.09.2015 um 20:10 schrieb Dan Morphis:
> One easy hack you can do is edit the name field in your browsers
> elements editor and remove the readonly attribute. Change the name, and
> you now have a new preset.
>
> On Mon, Sep 28, 2015 at 11:37 PM, Markus Mehlan
> <markus.mehlan at argus.info <mailto:markus.mehlan at argus.info>> wrote:
>
>     Hi,
>
>     it would be nice having a function that copies a large preset within
>     the GUI. If I focus on one preset in the list there could be another
>     link "copy". The "copy"-view would be like the "edit"-view but with
>     an empty "Name"-field.
>
>     Right now I use robomongo to copy large presets in the database.
>
>     Best regards,
>     Markus
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.genieacs.com <mailto:Users at lists.genieacs.com>
>     http://lists.genieacs.com/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>


_______________________________________________
Users mailing list
Users at lists.genieacs.com
http://lists.genieacs.com/mailman/listinfo/users


More information about the Users mailing list