Initial Redmine tooling and local plugin forks
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<p style="float:right;">
|
||||
<%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
|
||||
</p>
|
||||
|
||||
<p class="buttons">
|
||||
<%= label_tag('month', l(:label_month)) %>
|
||||
<%= select_month(@month, :prefix => "month", :discard_type => true) %>
|
||||
<%= label_tag('year', l(:label_year)) %>
|
||||
<%= select_year(@year, :prefix => "year", :discard_type => true) %>
|
||||
</p>
|
||||
@@ -0,0 +1,21 @@
|
||||
<table class="cal">
|
||||
<thead>
|
||||
<tr><th scope="col" title="<%= l(:label_week) %>" class="week-number"></th><% 7.times do |i| %><th scope="col"><%= day_name( (@calendar.first_wday+i)%7 ) %></th><% end %></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<% day = @calendar.startdt
|
||||
while day <= @calendar.enddt %>
|
||||
<%= ("<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>".html_safe) if day.cwday == @calendar.first_wday %>
|
||||
<td class="<%= day.month==@calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>" data-date="<%= day.to_date.to_s %>">
|
||||
<p class="day-num"><%= day.day %></p>
|
||||
<% @calendar.events_on(day).each do |i| %>
|
||||
<%= render :partial => "crm_calendars/#{i.class.name.downcase}_calendar_event", :locals => {:event => i, :day => day} %>
|
||||
<% end %>
|
||||
</td>
|
||||
<%= '</tr><tr>'.html_safe if day.cwday==@calendar.last_wday and day!=@calendar.enddt %>
|
||||
<% day = day + 1
|
||||
end %>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="issue deal" data-id="<%= event.id %>">
|
||||
<%= h("#{event.project} -") unless @project && @project == event.project %>
|
||||
<%= link_to "#{event.price_to_s} #{event.name}", deal_path(event), :class => "icon icon-add-deal" %>
|
||||
<span class="contact"><%= event.contact.name if event.contact %></span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user