Bugzilla – Attachment 125403 Details for
Bug 29042
Improve formatting of entry form in Additional Contents
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29042: Improve formatting of entry form in Additional Contents
Bug-29042-Improve-formatting-of-entry-form-in-Addi.patch (text/plain), 4.96 KB, created by
David Nind
on 2021-09-28 12:49:38 UTC
(
hide
)
Description:
Bug 29042: Improve formatting of entry form in Additional Contents
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-09-28 12:49:38 UTC
Size:
4.96 KB
patch
obsolete
>From 5231e2781be06aeb990a773257bcd94069776ade Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 16 Sep 2021 15:28:14 +0000 >Subject: [PATCH] Bug 29042: Improve formatting of entry form in Additional > Contents > >This patch makes some corrections to the Additional Contents template so >that the content entry form can be styled like other similar forms in >the staff interface. > >The patch also updates the form's "title" field so that it is longer and >has a maxlength attribute matching the size of the table column. > >To test, apply the patch and go to Tools -> News. > > - Create a new news item. > - In the entry form, confirm that the "Title" and "Content" fields are > styled consistently with other similar forms. > - Confirm that the "title" field is longer. > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../en/modules/tools/additional-contents.tt | 35 +++++++++---------- > 1 file changed, 16 insertions(+), 19 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >index c693a68b2e..c48da8913c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >@@ -194,7 +194,7 @@ > [% UNLESS languages.size %] > <li> > <label for="title" class="required">Title: </label> >- <input id="title" size="30" type="text" name="title" value="[% additional_content.title | html %]" required="required" class="required" /> <span class="required">Required</span> >+ <input id="title" size="100" maxlength="250" type="text" name="title" value="[% additional_content.title | html %]" required="required" class="required" /> <span class="required">Required</span> > </li> > [% END %] > <li> >@@ -237,29 +237,26 @@ > </ul> > > [% FOR language IN languages %] >- <div id="lang_[% language.lang | uri %]" class="lang" data-lang="[% language.description | html %]"> >- <div style="clear:both;"> >- >- <fieldset>[%# FIXME We should remove list-style:none; and use class="rows" here but it does not work. Owen please help! %] >- <ol> >- <li style="list-style: none;"> >- <label for="title_[% language.lang | html %]">Title: </label> >- <input id="title_[% language.lang| html %]" size="30" type="text" name="title" value="[% translated_contents.item(language.lang).title | html %]"></span> >- </li> >- <li style="list-style: none;"> >- <label for="content_[% language.lang | html %]">Content: </label> >- <textarea name="content" id="content_[% language.lang | html %]" cols="75" rows="10">[% translated_contents.item(language.lang).content | html %]</textarea> >- <input type="hidden" name="lang" value="[% language.lang | html %]" /> >- </li> >- </ol> >- </fieldset> >- </div> >+ <div id="lang_[% language.lang | uri %]" class="lang clearfix" data-lang="[% language.description | html %]"> >+ <fieldset class="rows"> >+ <ol> >+ <li style="list-style: none;"> >+ <label for="title_[% language.lang | html %]">Title: </label> >+ <input id="title_[% language.lang| html %]" size="100" maxlength="250" type="text" name="title" value="[% translated_contents.item(language.lang).title | html %]"> >+ </li> >+ <li style="list-style: none;"> >+ <label for="content_[% language.lang | html %]">Content: </label> >+ <textarea name="content" id="content_[% language.lang | html %]" cols="75" rows="10">[% translated_contents.item(language.lang).content | html %]</textarea> >+ <input type="hidden" name="lang" value="[% language.lang | html %]" /> >+ </li> >+ </ol> >+ </fieldset> > </div> > [% END %] > </div> > [% ELSE %] > <div id="lang_default"> >- <div style="clear:both;"> >+ <div class="clearfix"> > <textarea name="content" id="content_default" cols="75" rows="10">[% additional_content.content | html %]</textarea> > </div> > </div> >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29042
:
124939
|
125403
|
125655