Feature #2137
openfeature for creating subfolder for the recording when creating a new timer
0%
Description
i havent found something to push with git..... but im new with that :)
this help a lot for me choosing subfolder when creating new recordings by hand :-)
git diff d7933dd2d23e1c70263b55627d9801af74a9d813 diff --git a/template/default/timer_new.html b/template/default/timer_new.html index eaf8319..b466282 100644 --- a/template/default/timer_new.html +++ b/template/default/timer_new.html @@ -162,7 +162,15 @@ </tr> <tr class="<?% tr_class %?>"> <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> - <td class="col_label"><h5><?% gettext('Title of Recording:') %?></h5></td> + <td class="col_label"><h5><?% gettext('Title of Recording:') %?></h5> + (add: <a href="#" onClick="document.form.title.value='Kino~'+document.form.title.value;">Kino</a>, + <a href="#" onClick="document.form.title.value='Serie~'+document.form.title.value;">Serie</a>, + <a href="#" onClick="document.form.title.value='Doku~'+document.form.title.value;">Doku</a>, + <a href="#" onClick="document.form.title.value='DokuSerie~'+document.form.title.value;">DokuSerie</a>, + <a href="#" onClick="document.form.title.value='tbc~'+document.form.title.value;">tbc</a>, + <a href="#" onClick="document.form.title.value='Radio~'+document.form.title.value;">Radio</a> + ) + </td> <td class="col_value"><input type="text" name="title" value="<?% title | html %?>" size="80" /></td> </tr> <tr class="<?% tr_class %?>">
Updated by amair over 9 years ago
I don't like the hardcoded values. If you can change this to be dynamic or configureable, I might accept the patch.
Updated by flobee over 9 years ago
Hi, thx for checking it!
You are right!
But, i'm not into it in detail to do so at the moment. I'm too new to vdr project an all the stuff around. This is a quite big project with too much information on diffierent locations :-)
So this is a feature request.
Especally, perl is not my primary language, this will be the second problem. It takes too much time to get into it.
Yes i thought about a dropdown box with content from a config file.
If you can pipe the variable with some demo values to the template i will do the rest!
Kind regards flobee
Updated by flobee over 9 years ago
Hi
Anbei die gewünschten Änderungen.
Es müsste noch eine Variable namens "titleprefixes" mit einer liste an Konfigurierbaren texten dem template zur Verfügung gestellt werden. Keine Ahnung wie das geht. :-/
Wenn das steht schreibe ich gerne die Doku/Hilfe Texte und bring die Erweiterung in die anderen Templates z.b. epgsearch autotimer erstellen... sonnst noch wo?
git diff d7933dd2d23e1c70263b55627d9801af74a9d813 diff --git a/template/default/timer_new.html b/template/default/timer_new.html index eaf8319..a15dedc 100644 --- a/template/default/timer_new.html +++ b/template/default/timer_new.html @@ -162,8 +162,17 @@ </tr> <tr class="<?% tr_class %?>"> <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?> - <td class="col_label"><h5><?% gettext('Title of Recording:') %?></h5></td> - <td class="col_value"><input type="text" name="title" value="<?% title | html %?>" size="80" /></td> + <td class="col_label"> + <h5><?% gettext('Title of Recording:') %?></h5> + </td> + <td class="col_value"> + <select name="prefixDir" size="1" onChange="document.form.title.value=this.value + document.form.title.value;;"> +<?% FOREACH titleprefix = titleprefixes %?> + <option value="<?% titleprefix.name %?>"><?% titleprefix.name | html %?></option> +<?% END %?> + </select> + <input type="text" name="title" value="<?% title | html %?>" size="60" /><br /> + </td> </tr> <tr class="<?% tr_class %?>"> <?% tr_class = (tr_class == "row_odd" ? "row_even" : "row_odd") %?>
Gruß Florian