diff --git a/app/models/user.rb b/app/models/user.rb index 854759da9c..6eb087cc5b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -77,9 +77,4 @@ def full_name def admin? self.has_role?(:admin) || self.has_role?(:owner) end - - # # check whether the user present is in active state or not - # def active_for_authentication? - # super and self.active? - # end end diff --git a/app/views/devise/invitations/_new.html.erb b/app/views/devise/invitations/_new.html.erb index 2646bea1fa..5a3eba2f29 100644 --- a/app/views/devise/invitations/_new.html.erb +++ b/app/views/devise/invitations/_new.html.erb @@ -4,7 +4,7 @@
- + <%= if f.object.errors.include?(:first_name) error_message_on(f.object, :first_name) @@ -15,10 +15,10 @@
- <%= f.text_field :first_name, class: "#{error_message_class(f.object, :first_name)}" %> + <%= f.text_field :first_name, placeholder: t('team.first_name'), class: "rounded tracking-wider appearance-none border block w-full px-3 py-2 bg-miru-gray-100 h-8 shadow-sm font-medium text-sm text-miru-dark-purple-1000 focus:outline-none sm:text-base #{error_message_class(f.object, :first_name)}" %>
- <%= f.text_field :last_name, class: "#{error_message_class(f.object, :last_name)}" %> + <%= f.text_field :last_name, placeholder: t('team.last_name'), class: "rounded tracking-wider appearance-none border block w-full px-3 py-2 bg-miru-gray-100 h-8 shadow-sm font-medium text-sm text-miru-dark-purple-1000 focus:outline-none sm:text-base #{error_message_class(f.object, :last_name)}" %>
@@ -27,13 +27,13 @@
-
- <%= f.text_field field, class: "#{error_message_class(f.object, field)}" %> + <%= f.text_field field, placeholder: t('team.email'), class: "rounded tracking-wider appearance-none border block w-full px-3 py-2 bg-miru-gray-100 h-8 shadow-sm font-medium text-sm text-miru-dark-purple-1000 focus:outline-none sm:text-base #{error_message_class(f.object, field)}" %>
@@ -41,19 +41,19 @@
- +
- <%= f.radio_button :roles, 'Admin', class: "focus:ring-miru-han-purple-1000 h-4 w-4 border-miru-han-purple-1000 text-miru-dark-purple-1000" %> -
- <%= f.radio_button :roles, 'Employee', class: "focus:ring-miru-han-purple-1000 h-4 w-4 border-miru-han-purple-1000 text-miru-dark-purple-1000" %> -
diff --git a/app/views/team/_form.html.erb b/app/views/team/_form.html.erb index 455283cf27..e3d8af460d 100644 --- a/app/views/team/_form.html.erb +++ b/app/views/team/_form.html.erb @@ -29,15 +29,15 @@
- <%= f.radio_button :roles, "admin", :checked=>(@user.primary_role.titlecase == "Admin"), class: "focus:ring-miru-han-purple-1000 h-4 w-4 border-miru-han-purple-1000 text-miru-dark-purple-1000" %> + <%= f.radio_button :roles, "admin", :checked=>(@user.primary_role.titlecase == "Admin"), class: "focus:ring-miru-han-purple-1000 h-4 w-4 border-miru-han-purple-1000 text-miru-dark-purple-1000 cursor-pointer" %>
- <%= f.radio_button :roles, "employee", :checked=>(@user.primary_role.titlecase == "Employee"), class: "focus:ring-miru-han-purple-1000 h-4 w-4 border-miru-han-purple-1000 text-miru-dark-purple-1000" %> -
diff --git a/app/views/team/_team.html.erb b/app/views/team/_team.html.erb index 44d7fcc3df..71e6229a8b 100644 --- a/app/views/team/_team.html.erb +++ b/app/views/team/_team.html.erb @@ -22,13 +22,13 @@ <% if current_user.has_any_role?(:owner, :admin) %> <% if member.unconfirmed_email? %> - + <%= t('team.reconfirmation') %> <% else %> <% unless member.invitation_accepted? %> <% if (member.id != current_user.id) %> - + <%= t('team.invitation') %> <% end %> @@ -39,12 +39,14 @@ <% if current_user.has_any_role?(:owner, :admin) %> <%= link_to edit_team_path(member), remote: true do %> - + <% end %> <% end %> <% if current_user.has_any_role?(:owner, :admin) %> - <%= link_to image_tag("#{image_url 'delete_image_button.svg'}", class:" h-6 w-6"),team_path(member), method: :delete, class: ""%> + <%= link_to team_path(member), method: :delete do %> + + <% end %> <% end %> diff --git a/app/views/team/index.html.erb b/app/views/team/index.html.erb index e5d68c1e01..d32704204b 100644 --- a/app/views/team/index.html.erb +++ b/app/views/team/index.html.erb @@ -35,19 +35,19 @@ - - - - -
+ <%= t('team.profile_picture') %> + <%= t('team.name') %> + <%= t('team.email_id') %> + <%= t('team.role') %> + @@ -71,12 +71,12 @@
-