suite
This commit is contained in:
parent
0bb1ca964a
commit
f525442d8a
@ -14,7 +14,7 @@ class Admin::IWebsitesController < ApplicationController
|
||||
|
||||
|
||||
def index
|
||||
@i_websites = IWebsite.order(:name).all
|
||||
@i_websites = IWebsite.order("p_customer_id ASC").all
|
||||
|
||||
|
||||
end
|
||||
@ -45,7 +45,7 @@ class Admin::IWebsitesController < ApplicationController
|
||||
|
||||
|
||||
if @i_website.save
|
||||
@i_websites = IWebsite.order(:name).all
|
||||
@i_websites = IWebsite.order("p_customer_id ASC").all
|
||||
|
||||
else
|
||||
render action: "new"
|
||||
@ -61,7 +61,7 @@ class Admin::IWebsitesController < ApplicationController
|
||||
|
||||
if @i_website.update_attributes(params.require(:i_website).permit!)
|
||||
|
||||
@i_websites = IWebsite.order(:name).all
|
||||
@i_websites = IWebsite.order("p_customer_id ASC").all
|
||||
else
|
||||
render action: "edit"
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
%td= i_website.p_customer.show_name if i_website.p_customer
|
||||
%td= i_website.name
|
||||
%td=link_to i_website.url, i_website.url, :target => "_blank"
|
||||
%td= i_website.prov_url
|
||||
%td=link_to i_website.url.to_s, i_website.url.to_s, :target => "_blank"
|
||||
%td=link_to i_website.prov_url.to_s, i_website.prov_url.to_s, :target => "_blank"
|
||||
%td= i_website.status
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user