You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/04/26 04:04:24 UTC

svn commit: r1330630 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: templates/bh_admin_basics.html theme.py

Author: gjm
Date: Thu Apr 26 02:04:23 2012
New Revision: 1330630

URL: http://svn.apache.org/viewvc?rev=1330630&view=rev
Log:
theme: admin (basic) template changes provided by Olemis #15

Added:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html?rev=1330630&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html Thu Apr 26 02:04:23 2012
@@ -0,0 +1,75 @@
+<!DOCTYPE html
+    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:py="http://genshi.edgewall.org/">
+  <xi:include href="bh_admin.html" />
+  <head>
+    <title>Basics</title>
+  </head>
+
+  <body>
+    <h2>Basic Settings</h2>
+
+    <form class="well form-horizontal" id="modbasic" method="post" action="">
+      <fieldset>
+        <legend>Project</legend>
+        <div class="control-group">
+          <label class="control-label" for="name">Name:</label>
+          <div class="controls">
+            <input id="name" type="text" name="name" value="${project.name}" />
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="url">URL:</label>
+          <div class="controls">
+            <input id="url" type="text" name="url" size="48" value="${project.url}" />
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="descr">Description:</label>
+          <div class="controls">
+            <textarea id="descr" name="descr" class="trac-resizable" rows="3" cols="50">
+                      ${project.descr}</textarea>
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="default_timezone">Default timezone:</label>
+          <div class="controls">
+            <select id="default-timezone" name="default_timezone">
+              <option value="">Server's local time zone</option>
+              <option py:for="tzname in timezones" value="${tzname}"
+                      selected="${tzname == default_timezone or None}">${tzname}</option>
+            </select>
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="default_language">Default language:</label>
+          <div class="controls">
+            <select id="default_language" name="default_language">
+              <option value="">Browser's language</option>
+              <option py:for="locale, language in languages" value="${locale}"
+                      selected="${locale == default_language or None}">${language}</option>
+            </select>
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="default_date_format">Default date format:</label>
+          <div class="controls">
+            <select id="default_date_format" name="default_date_format">
+              <option value="">Browser's language</option>
+              <option value="iso8601"
+                      selected="${default_date_format == 'iso8601' or None}">ISO 8601 format</option>
+            </select>
+          </div>
+        </div>
+      </fieldset>
+      <div class="control-group">
+        <input type="submit" class="btn-primary" 
+            value="${_('Apply changes')}" />
+      </div>
+    </form>
+  </body>
+
+</html>

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1330630&r1=1330629&r2=1330630&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Thu Apr 26 02:04:23 2012
@@ -73,6 +73,7 @@ class BloodhoundTheme(ThemeBase):
     template = htdocs = css = screenshot = disable_trac_css = True
     disable_all_trac_css = True
     BLOODHOUND_TEMPLATE_MAP = {
+        'admin_basics.html' : 'bh_admin_basics.html',
         'admin_logging.html' : 'bh_admin_logging.html',
     }
     implements(IRequestFilter)



Re: svn commit: r1330630 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: templates/bh_admin_basics.html theme.py

Posted by Olemis Lang <ol...@gmail.com>.
jftr

I used Bootstrap 2.0.2 because I noticed that version was the one they were
using in their website minutes before I started to build plugins admin
panel ... and 2.0.1 had no support for dl-horizontal ) ...

On 4/26/12, Gary <ga...@wandisco.com> wrote:
> Hi everyone,
>
> In case you haven't noticed I am continuing the committing of the
> patches from ticket 15. Feel free to stop me if I am going too fast.
>
> One deviation from the patches as specified is to jump to version 2.0.3
> of bootstrap css and js.
>
> Cheers,
>      Gary
>
>
> On 04/26/2012 03:13 AM, Gary wrote:
>> Hi,
>>
>> Just thought I should mention that I have committed a few of the
>> patches listed in https://issues.apache.org/bloodhound/ticket/15 to
>> see how things go with those. There are a number more that I expect to
>> look at committing a fair bit later today.
>>
>> My changes to the patches are slight, partly due to the fact that the
>> patches were based on a different revision.
>>
>> Do let me know if any problems are spotted.
>>
>> Cheers,
>>     Gary
>>
>>
>> On 26/04/12 03:04, gjm@apache.org wrote:
>>> Author: gjm
>>> Date: Thu Apr 26 02:04:23 2012
>>> New Revision: 1330630
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1330630&view=rev
>>> Log:
>>> theme: admin (basic) template changes provided by Olemis #15
>>>
>>> Added:
>>>
>>> incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
>>> Modified:
>>>      incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
>>>
>>> Added:
>>> incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
>>> URL:
>>> http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html?rev=1330630&view=auto
>>> ==============================================================================
>>>
>>>
>>> ---
>>> incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
>>>
>>> (added)
>>> +++
>>> incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
>>>
>>> Thu Apr 26 02:04:23 2012
>>> @@ -0,0 +1,75 @@
>>> +<!DOCTYPE html
>>> +    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>>> +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>>> +<html xmlns="http://www.w3.org/1999/xhtml"
>>> +      xmlns:xi="http://www.w3.org/2001/XInclude"
>>> +      xmlns:py="http://genshi.edgewall.org/">
>>> +<xi:include href="bh_admin.html" />
>>> +<head>
>>> +<title>Basics</title>
>>> +</head>
>>> +
>>> +<body>
>>> +<h2>Basic Settings</h2>
>>> +
>>> +<form class="well form-horizontal" id="modbasic" method="post"
>>> action="">
>>> +<fieldset>
>>> +<legend>Project</legend>
>>> +<div class="control-group">
>>> +<label class="control-label" for="name">Name:</label>
>>> +<div class="controls">
>>> +<input id="name" type="text" name="name" value="${project.name}" />
>>> +</div>
>>> +</div>
>>> +<div class="control-group">
>>> +<label class="control-label" for="url">URL:</label>
>>> +<div class="controls">
>>> +<input id="url" type="text" name="url" size="48"
>>> value="${project.url}" />
>>> +</div>
>>> +</div>
>>> +<div class="control-group">
>>> +<label class="control-label" for="descr">Description:</label>
>>> +<div class="controls">
>>> +<textarea id="descr" name="descr" class="trac-resizable" rows="3"
>>> cols="50">
>>> +                      ${project.descr}</textarea>
>>> +</div>
>>> +</div>
>>> +<div class="control-group">
>>> +<label class="control-label" for="default_timezone">Default
>>> timezone:</label>
>>> +<div class="controls">
>>> +<select id="default-timezone" name="default_timezone">
>>> +<option value="">Server's local time zone</option>
>>> +<option py:for="tzname in timezones" value="${tzname}"
>>> +                      selected="${tzname == default_timezone or
>>> None}">${tzname}</option>
>>> +</select>
>>> +</div>
>>> +</div>
>>> +<div class="control-group">
>>> +<label class="control-label" for="default_language">Default
>>> language:</label>
>>> +<div class="controls">
>>> +<select id="default_language" name="default_language">
>>> +<option value="">Browser's language</option>
>>> +<option py:for="locale, language in languages" value="${locale}"
>>> +                      selected="${locale == default_language or
>>> None}">${language}</option>
>>> +</select>
>>> +</div>
>>> +</div>
>>> +<div class="control-group">
>>> +<label class="control-label" for="default_date_format">Default date
>>> format:</label>
>>> +<div class="controls">
>>> +<select id="default_date_format" name="default_date_format">
>>> +<option value="">Browser's language</option>
>>> +<option value="iso8601"
>>> +                      selected="${default_date_format == 'iso8601'
>>> or None}">ISO 8601 format</option>
>>> +</select>
>>> +</div>
>>> +</div>
>>> +</fieldset>
>>> +<div class="control-group">
>>> +<input type="submit" class="btn-primary"
>>> +            value="${_('Apply changes')}" />
>>> +</div>
>>> +</form>
>>> +</body>
>>> +
>>> +</html>
>>>
>>> Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
>>> URL:
>>> http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1330630&r1=1330629&r2=1330630&view=diff
>>> ==============================================================================
>>>
>>>
>>> --- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
>>> (original)
>>> +++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Thu
>>> Apr 26 02:04:23 2012
>>> @@ -73,6 +73,7 @@ class BloodhoundTheme(ThemeBase):
>>>       template = htdocs = css = screenshot = disable_trac_css = True
>>>       disable_all_trac_css = True
>>>       BLOODHOUND_TEMPLATE_MAP = {
>>> +        'admin_basics.html' : 'bh_admin_basics.html',
>>>           'admin_logging.html' : 'bh_admin_logging.html',
>>>       }
>>>       implements(IRequestFilter)
>>>
>>>
>>
>
>


-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

Re: svn commit: r1330630 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: templates/bh_admin_basics.html theme.py

Posted by Gary <ga...@wandisco.com>.
Hi everyone,

In case you haven't noticed I am continuing the committing of the 
patches from ticket 15. Feel free to stop me if I am going too fast.

One deviation from the patches as specified is to jump to version 2.0.3 
of bootstrap css and js.

Cheers,
     Gary


On 04/26/2012 03:13 AM, Gary wrote:
> Hi,
>
> Just thought I should mention that I have committed a few of the 
> patches listed in https://issues.apache.org/bloodhound/ticket/15 to 
> see how things go with those. There are a number more that I expect to 
> look at committing a fair bit later today.
>
> My changes to the patches are slight, partly due to the fact that the 
> patches were based on a different revision.
>
> Do let me know if any problems are spotted.
>
> Cheers,
>     Gary
>
>
> On 26/04/12 03:04, gjm@apache.org wrote:
>> Author: gjm
>> Date: Thu Apr 26 02:04:23 2012
>> New Revision: 1330630
>>
>> URL: http://svn.apache.org/viewvc?rev=1330630&view=rev
>> Log:
>> theme: admin (basic) template changes provided by Olemis #15
>>
>> Added:
>>      
>> incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
>> Modified:
>>      incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
>>
>> Added: 
>> incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
>> URL: 
>> http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html?rev=1330630&view=auto
>> ============================================================================== 
>>
>> --- 
>> incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html 
>> (added)
>> +++ 
>> incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html 
>> Thu Apr 26 02:04:23 2012
>> @@ -0,0 +1,75 @@
>> +<!DOCTYPE html
>> +    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>> +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>> +<html xmlns="http://www.w3.org/1999/xhtml"
>> +      xmlns:xi="http://www.w3.org/2001/XInclude"
>> +      xmlns:py="http://genshi.edgewall.org/">
>> +<xi:include href="bh_admin.html" />
>> +<head>
>> +<title>Basics</title>
>> +</head>
>> +
>> +<body>
>> +<h2>Basic Settings</h2>
>> +
>> +<form class="well form-horizontal" id="modbasic" method="post" 
>> action="">
>> +<fieldset>
>> +<legend>Project</legend>
>> +<div class="control-group">
>> +<label class="control-label" for="name">Name:</label>
>> +<div class="controls">
>> +<input id="name" type="text" name="name" value="${project.name}" />
>> +</div>
>> +</div>
>> +<div class="control-group">
>> +<label class="control-label" for="url">URL:</label>
>> +<div class="controls">
>> +<input id="url" type="text" name="url" size="48" 
>> value="${project.url}" />
>> +</div>
>> +</div>
>> +<div class="control-group">
>> +<label class="control-label" for="descr">Description:</label>
>> +<div class="controls">
>> +<textarea id="descr" name="descr" class="trac-resizable" rows="3" 
>> cols="50">
>> +                      ${project.descr}</textarea>
>> +</div>
>> +</div>
>> +<div class="control-group">
>> +<label class="control-label" for="default_timezone">Default 
>> timezone:</label>
>> +<div class="controls">
>> +<select id="default-timezone" name="default_timezone">
>> +<option value="">Server's local time zone</option>
>> +<option py:for="tzname in timezones" value="${tzname}"
>> +                      selected="${tzname == default_timezone or 
>> None}">${tzname}</option>
>> +</select>
>> +</div>
>> +</div>
>> +<div class="control-group">
>> +<label class="control-label" for="default_language">Default 
>> language:</label>
>> +<div class="controls">
>> +<select id="default_language" name="default_language">
>> +<option value="">Browser's language</option>
>> +<option py:for="locale, language in languages" value="${locale}"
>> +                      selected="${locale == default_language or 
>> None}">${language}</option>
>> +</select>
>> +</div>
>> +</div>
>> +<div class="control-group">
>> +<label class="control-label" for="default_date_format">Default date 
>> format:</label>
>> +<div class="controls">
>> +<select id="default_date_format" name="default_date_format">
>> +<option value="">Browser's language</option>
>> +<option value="iso8601"
>> +                      selected="${default_date_format == 'iso8601' 
>> or None}">ISO 8601 format</option>
>> +</select>
>> +</div>
>> +</div>
>> +</fieldset>
>> +<div class="control-group">
>> +<input type="submit" class="btn-primary"
>> +            value="${_('Apply changes')}" />
>> +</div>
>> +</form>
>> +</body>
>> +
>> +</html>
>>
>> Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
>> URL: 
>> http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1330630&r1=1330629&r2=1330630&view=diff
>> ============================================================================== 
>>
>> --- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py 
>> (original)
>> +++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Thu 
>> Apr 26 02:04:23 2012
>> @@ -73,6 +73,7 @@ class BloodhoundTheme(ThemeBase):
>>       template = htdocs = css = screenshot = disable_trac_css = True
>>       disable_all_trac_css = True
>>       BLOODHOUND_TEMPLATE_MAP = {
>> +        'admin_basics.html' : 'bh_admin_basics.html',
>>           'admin_logging.html' : 'bh_admin_logging.html',
>>       }
>>       implements(IRequestFilter)
>>
>>
>


Re: svn commit: r1330630 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: templates/bh_admin_basics.html theme.py

Posted by Gary <ga...@wandisco.com>.
Hi,

Just thought I should mention that I have committed a few of the patches 
listed in https://issues.apache.org/bloodhound/ticket/15 to see how 
things go with those. There are a number more that I expect to look at 
committing a fair bit later today.

My changes to the patches are slight, partly due to the fact that the 
patches were based on a different revision.

Do let me know if any problems are spotted.

Cheers,
     Gary


On 26/04/12 03:04, gjm@apache.org wrote:
> Author: gjm
> Date: Thu Apr 26 02:04:23 2012
> New Revision: 1330630
>
> URL: http://svn.apache.org/viewvc?rev=1330630&view=rev
> Log:
> theme: admin (basic) template changes provided by Olemis #15
>
> Added:
>      incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
> Modified:
>      incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
>
> Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
> URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html?rev=1330630&view=auto
> ==============================================================================
> --- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html (added)
> +++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html Thu Apr 26 02:04:23 2012
> @@ -0,0 +1,75 @@
> +<!DOCTYPE html
> +    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> +    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> +<html xmlns="http://www.w3.org/1999/xhtml"
> +      xmlns:xi="http://www.w3.org/2001/XInclude"
> +      xmlns:py="http://genshi.edgewall.org/">
> +<xi:include href="bh_admin.html" />
> +<head>
> +<title>Basics</title>
> +</head>
> +
> +<body>
> +<h2>Basic Settings</h2>
> +
> +<form class="well form-horizontal" id="modbasic" method="post" action="">
> +<fieldset>
> +<legend>Project</legend>
> +<div class="control-group">
> +<label class="control-label" for="name">Name:</label>
> +<div class="controls">
> +<input id="name" type="text" name="name" value="${project.name}" />
> +</div>
> +</div>
> +<div class="control-group">
> +<label class="control-label" for="url">URL:</label>
> +<div class="controls">
> +<input id="url" type="text" name="url" size="48" value="${project.url}" />
> +</div>
> +</div>
> +<div class="control-group">
> +<label class="control-label" for="descr">Description:</label>
> +<div class="controls">
> +<textarea id="descr" name="descr" class="trac-resizable" rows="3" cols="50">
> +                      ${project.descr}</textarea>
> +</div>
> +</div>
> +<div class="control-group">
> +<label class="control-label" for="default_timezone">Default timezone:</label>
> +<div class="controls">
> +<select id="default-timezone" name="default_timezone">
> +<option value="">Server's local time zone</option>
> +<option py:for="tzname in timezones" value="${tzname}"
> +                      selected="${tzname == default_timezone or None}">${tzname}</option>
> +</select>
> +</div>
> +</div>
> +<div class="control-group">
> +<label class="control-label" for="default_language">Default language:</label>
> +<div class="controls">
> +<select id="default_language" name="default_language">
> +<option value="">Browser's language</option>
> +<option py:for="locale, language in languages" value="${locale}"
> +                      selected="${locale == default_language or None}">${language}</option>
> +</select>
> +</div>
> +</div>
> +<div class="control-group">
> +<label class="control-label" for="default_date_format">Default date format:</label>
> +<div class="controls">
> +<select id="default_date_format" name="default_date_format">
> +<option value="">Browser's language</option>
> +<option value="iso8601"
> +                      selected="${default_date_format == 'iso8601' or None}">ISO 8601 format</option>
> +</select>
> +</div>
> +</div>
> +</fieldset>
> +<div class="control-group">
> +<input type="submit" class="btn-primary"
> +            value="${_('Apply changes')}" />
> +</div>
> +</form>
> +</body>
> +
> +</html>
>
> Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
> URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1330630&r1=1330629&r2=1330630&view=diff
> ==============================================================================
> --- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
> +++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Thu Apr 26 02:04:23 2012
> @@ -73,6 +73,7 @@ class BloodhoundTheme(ThemeBase):
>       template = htdocs = css = screenshot = disable_trac_css = True
>       disable_all_trac_css = True
>       BLOODHOUND_TEMPLATE_MAP = {
> +        'admin_basics.html' : 'bh_admin_basics.html',
>           'admin_logging.html' : 'bh_admin_logging.html',
>       }
>       implements(IRequestFilter)
>
>