let rulingcom new activity for other members

This commit is contained in:
EricTYL 2020-02-13 16:46:59 +08:00
parent 77179fa0fc
commit e6e444bd77
2 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class Admin::ActivitiesController < OrbitMemberController
end end
def new def new
@member = MemberProfile.find_by(:uid=>params['uid']) rescue nil
@activity = Activity.new @activity = Activity.new
end end

View File

@ -86,6 +86,16 @@
<!-- Basic Module --> <!-- Basic Module -->
<div class="tab-pane fade in active" id="basic"> <div class="tab-pane fade in active" id="basic">
<% if !@member.nil? %>
<div class="control-group big-group">
<label class="control-label muted"><%= t("personal_plugins.author") %></label>
<div class="controls">
<%= @member.name rescue ''%>
<%= f.hidden_field :member_profile_id, :value => @member.id %>
</div>
</div>
<% end %>
<!-- year --> <!-- year -->
<div class="control-group"> <div class="control-group">
<label class="control-label muted"><%= t("personal_activity.year") %></label> <label class="control-label muted"><%= t("personal_activity.year") %></label>