<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Aug 22, 2015 at 6:44 PM, Lubomir I. Ivanov <span dir="ltr"><<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 22 August 2015 at 19:20, Gehad Elrobey <<a href="mailto:gehadelrobey@gmail.com">gehadelrobey@gmail.com</a>> wrote:<br>
><br>
><br>
> On Sat, Aug 22, 2015 at 5:58 PM, Lubomir I. Ivanov <<a href="mailto:neolit123@gmail.com">neolit123@gmail.com</a>><br>
> wrote:<br>
>><br>
</span><div><div class="h5">>> can we eventually support HTML/CSS editing of the statistics template,<br>
>> for instance - adding/removing table columns such as year.avg_depth,<br>
>> year.max_depth etc?<br>
>> does that mean we need another Custom.html?<br>
>><br>
><br>
> We need to add Custom.html template in printing_templates/statistics, So we<br>
> can saved edited statistics template there, unless we support in-place<br>
> editing.<br>
><br>
>><br>
>> actually, this opens some questions about the Custom.html<br>
>> concept...something that i have missed.<br>
>><br>
>> how can the user edit, say the 6-dives template and save it from<br>
>> Subsurface? it always saves to the Custom.html template and editing in<br>
>> place is not possible. of course this is nice in a way, as they can't<br>
>> modify the bundled templates but i think *they should* and it's their<br>
>> problem if they make one of the bundled templates bad.<br>
>><br>
><br>
> I though of this, my solution was that they can always export the custom<br>
> template into subsurface template directory with the name they prefer and it<br>
> will be automatically added to the list, Also it is possible to export the<br>
> template anywhere then import it which will save it to the list.<br>
><br>
>><br>
>> editing in-place is the way to go, which means that if the user edits<br>
>> "Six Dives.html" and presses "save" the actual "Six Dives.html" is<br>
>> saved - this removes the need for Custom.html.<br>
>> what do you think? sorry for the late change request, but hopefully<br>
>> that won't break a lot of things.<br>
>><br>
><br>
> I think this will make the user interface more intuitive, but we will not be<br>
> able to handle overwriting the bundled templates (We can still show a<br>
> warning message).<br>
><br>
<br>
</div></div>i agree, that it does become more intuitive as Custom.html is a bit confusing.<br>
<br>
sometimes giving slightly more freedom to the user isn't that bad. if<br>
they lose a bundled template they can always re-install the whole app<br>
in the same folder.<br>
...and to make a copy of a bundled template they can just Export in<br>
the same folder with a new name e.g. MyNewTemplate.html.<br>
<br>
let's do it with in-place editing and show the following warning if<br>
any of the bundled templates is about to be saved by the user:<br>
<Warning sign> (if possible)<br>
"You are about to modify a template bundled with Subsurface. Do you<br>
want to save your changes?"<br>
<Save>, <Cancel><br>
<br>
For non-bundled templates:<br>
"Do you want to save your changes?"<br>
<Save>, <Cancel><br>
<br>
this should include "statistics/Default.html" and it will be nice to<br>
be able to edit statistics templates as well.<br>
<br></blockquote></div><div><br>yes, that's a good solution, I will work on that and ll send updates when I finish.<br><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</div></div>