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
<[email protected] <mailto:[email protected]>> 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
    [email protected] <mailto:[email protected]>
    http://lists.genieacs.com/mailman/listinfo/users




_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to