-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
206 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,6 +1,8 @@ | |||
class HomeController < ApplicationController | class HomeController < ApplicationController | ||
def index | def index | ||
@mensagem = "Bem-vindo" | @mensagem = "Bem-vindo" | ||
@aps = current_user.aps.count | |||
@clients = current_user.clients.count | |||
end | end | ||
|
|
||
end | end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,40 @@ | |||
- form_for(@ap) do |f| | |||
= f.error_messages | |||
%p | |||
= f.label :essid | |||
= f.text_field :essid | |||
%p | |||
= f.label :mac | |||
= f.text_field :mac | |||
%p | |||
= f.label :enc | |||
= f.text_field :enc | |||
%p | |||
= f.label :key | |||
= f.text_field :key | |||
%p | |||
= f.label :ip | |||
= f.text_field :ip | |||
%p | |||
= f.label :mask | |||
= f.text_field :mask | |||
%p | |||
= f.label :dhcp | |||
= f.check_box :dhcp | |||
%p | |||
= f.label :canal | |||
= f.text_field :channel | |||
%p | |||
= f.label :Pais | |||
= f.text_field :country | |||
%p | |||
= f.label :Cidade | |||
= f.text_field :city | |||
%p | |||
= f.label :Estado | |||
= f.text_field :region | |||
|
|||
%p= f.submit(metodo == "post" ? "Gravar" : "Atualizar") | |||
- end | |||
|
|||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
%h1= "Editando #{@ap.essid}" | |||
|
|||
= partial 'aps/ap', :metodo => "put" | |||
|
|||
= link_to 'Ver', @ap | |||
| | |||
= link_to 'Voltar', aps_path |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
%h1 Listando Pontos de acesso | |||
|
|||
= content_tag('div', '', :id => 'flexigrid') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
%h1 Novo Ponto de acesso | |||
|
|||
= partial 'aps/ap', :metodo => "post" | |||
|
|||
= link_to 'Voltar', aps_path |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,44 @@ | |||
%h1= @ap.essid | |||
%p | |||
%b Essid: | |||
=h @ap.essid | |||
%p | |||
%b Mac: | |||
=h @ap.mac | |||
%p | |||
%b Enc: | |||
=h @ap.enc | |||
%p | |||
%b Key: | |||
=h @ap.key | |||
%p | |||
%b Ip: | |||
=h @ap.ip | |||
%p | |||
%b Mask: | |||
=h @ap.mask | |||
%p | |||
%b DHCP: | |||
=h @ap.dhcp | |||
%p | |||
%b Canal: | |||
=h @ap.channel | |||
%p | |||
%b Pais: | |||
=h @ap.country | |||
%p | |||
%b Cidade: | |||
=h @ap.city | |||
%p | |||
%b Estado: | |||
=h @ap.region | |||
%p | |||
%b Clientes: | |||
- for client in @ap.clients | |||
%p | |||
= link_to client.mac, client | |||
- end | |||
%br/ | |||
= link_to 'Editar', edit_ap_path(@ap) | |||
| | |||
= link_to 'Voltar', aps_path |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,18 @@ | |||
%h1= @mensagem | |||
|
|||
%p | |||
You may want to start up | |||
= link_to "uploading a logfile?", new_logfile_path | |||
|
|||
|
|||
%h2 News on your area | |||
|
|||
|
|||
|
|||
%h2= current_user.login.upcase | |||
%p | |||
You have | |||
= link_to "#{@aps} Access Points", aps_path | |||
and | |||
= link_to "#{@clients} Clients.", clients_path | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,5 @@ | |||
<div id="header"> | <a href='/'> | ||
<div id="logo"></div> | <div id="header"> | ||
</div> | <div id="logo"></div> | ||
</div> | |||
</a> |
Oops, something went wrong.