Marius Balteanu
d1008280d8
Renames and improves methods provided by @IconsHelper@ ( #23980 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-19 10:06:26 +00:00
Marius Balteanu
ffce07e785
Start working on replacing old icons with SVG icons ( #23980 ):
...
* Introduces IconsHelper with methods to render SVG icon from a sprite file.
* Adds SVG sprite file with icons mainly from Font Awesome, but also from Material Design Icons and Fluent UI System Icons (based on the work made by Takashi Kato (@tohosaku)).
* Replaces specific icons with new SVG icons.
* Temporarily keep all old CSS icon definitions for backard compatibility.
git-svn-id: https://svn.redmine.org/redmine/trunk@22988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-29 21:46:40 +00:00
Go MAEDA
5c9447fd63
Support "active" attribute in Enumerations REST API ( #31559 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18325 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-30 05:57:52 +00:00
Jean-Philippe Lang
9814dcf231
Use css pseudo-classes instead of cycle("odd", "even") ( #15361 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16249 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-25 11:44:12 +00:00
Jean-Philippe Lang
bbede05f2e
Handle the case of none existing enumerations using no-data blocks ( #24776 ).
...
Patch by Mischa The Evil.
git-svn-id: http://svn.redmine.org/redmine/trunk@16188 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-14 10:04:40 +00:00
Jean-Philippe Lang
898a55fa70
Add 'icon' and 'icon-add' classes to new enum links ( #24776 ).
...
Patch by Mischa The Evil.
git-svn-id: http://svn.redmine.org/redmine/trunk@16187 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-14 10:04:00 +00:00
Jean-Philippe Lang
7f3ce996c2
Move 'New enumeration' links to above the item tables ( #24776 ).
...
Patch by Mischa The Evil.
git-svn-id: http://svn.redmine.org/redmine/trunk@16186 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-14 10:03:26 +00:00
Jean-Philippe Lang
7b7a84c93a
Use multipart forms for objects that may have file custom fields ( #6719 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16068 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-13 19:44:28 +00:00
Jean-Philippe Lang
49fcec80b7
Reverts r16051 and r16050 for now ( #15361 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16052 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-03 09:59:03 +00:00
Jean-Philippe Lang
826e978806
Removes calls to #reset_cycle ( #15361 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16051 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-03 09:21:12 +00:00
Jean-Philippe Lang
48f72a3d15
Use css pseudo-classes instead "odd", "even" classes ( #15361 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16050 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-03 09:15:31 +00:00
Jean-Philippe Lang
fa2f598150
Render custom values of enumeration objects in API requests ( #22795 ).
...
Patch by Jens Kraemer.
git-svn-id: http://svn.redmine.org/redmine/trunk@15812 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-09-03 07:30:21 +00:00
Jean-Philippe Lang
42b5c332b2
Lists can be reordered with drag and drop ( #12909 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15336 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-17 07:40:39 +00:00
Jean-Philippe Lang
25b96457c1
Display enumeration name in confirmation message.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14750 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-25 10:37:31 +00:00
Jean-Philippe Lang
b778c51e90
Removed unneeded #h calls in views.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14043 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-23 10:11:08 +00:00
Jean-Philippe Lang
967564cba0
Removed deprecated align and width html attributes ( #15307 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12268 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-11-11 21:01:21 +00:00
Jean-Philippe Lang
8525e56c33
Adds a CSS class for reorder links ( #15307 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@12265 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-11-10 13:24:07 +00:00
Jean-Philippe Lang
642a892c05
Missing Sort Column Label and Center Align on Admin-Enumerations ( #14516 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12051 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-07-28 11:53:28 +00:00
Jean-Philippe Lang
f3241385cd
Adds missing html titles ( #14517 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12050 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-07-28 11:50:18 +00:00
Jean-Philippe Lang
c90bf645f5
Fixed that submitting the form without selecting a value may raise raises an error with SQLServer ( #13783 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11854 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-17 18:18:06 +00:00
Jean-Philippe Lang
d62b90db73
Makes enumerations available through the REST API.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10664 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-17 17:29:27 +00:00
Jean-Philippe Lang
7b40767428
Deprecated :confirm => 'Text' option.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9937 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-07 14:36:49 +00:00
Jean-Philippe Lang
69e55fb1ef
Fixed that enumerations option tags are escaped.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9681 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-13 08:45:15 +00:00
Jean-Philippe Lang
5e57a1a9d9
Merged rails-3.2 branch.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-25 17:17:49 +00:00
Jean-Philippe Lang
0471de41ff
Resourcified enumerations.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8189 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-11 10:26:12 +00:00
Jean-Philippe Lang
622b3ae61c
Removed delete button on enumeration edit form.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7974 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-28 20:32:12 +00:00
Jean-Philippe Lang
2dbbdafbc6
Removed EnumerationsController#list action.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7973 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-28 20:23:57 +00:00
Toshi MARUYAMA
52f2879559
[ #9489 ] added invisible labels for reassign select-tag on destroy views
...
Contributed by Romano Licker.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7684 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-29 01:18:10 +00:00
Toshi MARUYAMA
beab398219
replace tabs to spaces at app/views/enumerations/_form.html.erb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7358 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 23:07:15 +00:00
Toshi MARUYAMA
b95d33388b
replace tabs to spaces at app/views/enumerations/list.html.erb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7357 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 23:06:37 +00:00
Toshi MARUYAMA
5567f2497b
remove trailing white-spaces from app/views/enumerations/list.html.erb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7267 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 00:15:22 +00:00
Toshi MARUYAMA
d85f21a916
add newline at end of app/views/enumerations/edit.html.erb
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7229 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-14 12:09:44 +00:00
Toshi MARUYAMA
43e6466c1a
rename .rhtml to .html.erb of app/views/enumerations/destroy.rhtml.
...
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6591 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-24 07:19:04 +00:00
Toshi MARUYAMA
eb321291a1
rename .rhtml to .html.erb of app/views/enumerations/_form.rhtml.
...
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6590 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-24 07:18:41 +00:00
Toshi MARUYAMA
89eab37223
rename .rhtml to .html.erb of app/views/enumerations/new.rhtml.
...
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6589 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-24 07:18:18 +00:00
Toshi MARUYAMA
66fbb1a746
rename .rhtml to .html.erb of app/views/enumerations/edit.rhtml.
...
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6588 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-24 07:17:55 +00:00
Toshi MARUYAMA
fa3c729a67
rename .rhtml to .html.erb of app/views/enumerations/list.rhtml.
...
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6587 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-24 07:17:29 +00:00
Jean-Philippe Lang
0fa124a92c
Adds missing thead tags ( #5440 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3734 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-05-09 11:19:15 +00:00
Jean-Philippe Lang
f741ca7269
Adds an helper for displaying the 'checked' image.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3600 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-03-17 20:46:22 +00:00
Jean-Philippe Lang
d8c5549168
Changes misleading scopes on Enumeration.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3083 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-21 12:00:49 +00:00
Eric Davis
ff3d0fe4db
Fixed some merge bugs. #4077
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2952 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-10-21 22:35:03 +00:00
Eric Davis
e76d4c5c4c
Added an active field track if an Enumeration is active on the frontend view.
...
* Changed TimelogHelper#activity_collection_for_select_options to only use
active TimeEntryActivities.
* Changed TimelogHelper#activity_collection_for_select_options to return a blank
option if the time_entry's current activity is inactive.
#4077
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2946 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-10-21 22:34:28 +00:00
Eric Davis
ac4937a767
Enumerations can now have custom fields defined on them. #4077
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2945 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-10-21 22:34:22 +00:00
Jean-Philippe Lang
7f4635022f
Makes 'delete links' the same on admin views.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2872 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-12 09:25:39 +00:00
Jean-Philippe Lang
ad90811e40
Administration panel breadcrumbs ( #3314 ).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2810 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-07-05 12:22:02 +00:00
Eric Davis
62e58f26b0
Changed Enumerations to use a Single Table Inheritance
...
* Added migrations to change Enumerations to an STI relationship
* Added TimeEntryActivity model (STI)
* Added DocumentCategory model (STI)
* Added IssuePriority model (STI)
* Added Enumeration#get_subclasses to get a list of the subclasses of Enumeration
* Changed Enumeration to use the STI type field instead of the opt field
* Changed Enumeration#opt to return the old opt values but with a deprecation warning.
* Removed Enumeration::OPTIONS
* Removed the dynamic named_scopes in favor of specific named_scopes. Kept for
compatibility reasons.
* Added Enumeration#default so each subclass can easily find it's default record.
* Fixed Enumeration#default to use the STI scoping with a fake default scope for finding Enumeration's default.
* Added a 'all' named scope for getting all records in order by position.
* Added Deprecation warnings to the old named_scopes in Enumerations.
* Moved various methods off of Enumeration and onto the concrete classes
* Changed the EnumerationsController to use types
* Updated the Enumeration list template
* Added has_many relationships to the Enumeration STI classes.
* Fixes for tests.
#3007
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2777 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-05-30 23:30:36 +00:00
Jean-Philippe Lang
47f5713b1e
Reorder links refactoring (follows r2526).
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2546 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-03-01 12:03:48 +00:00
Jean-Philippe Lang
4601ed2f3a
Replaces Enumeration.get_values and Enumeration.default with named scopes.
...
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2472 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-15 13:33:09 +00:00
Jean-Philippe Lang
3c95f761e6
Ability to remove enumerations (activities, priorities, document categories) that are in use. Associated objects can be reassigned to another value ( #1467 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1558 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-06-17 19:10:54 +00:00
Jean-Philippe Lang
d446469f5d
Removes constraint on enumerations name ( #1384 ).
...
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1503 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-06-07 15:08:59 +00:00