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